I use Struts2 extensively in my application. Now I want to add HTML5 attributes such as autocorrect and type="email" . I do not see any HTML5 plugin. Is there a standard way for the <s:textfield..> , for example?
autocorrect
type="email"
<s:textfield..>
You can add HTML5 attributes directly to the textfield tag. I did it successfully with pattern , min and max , they render correctly in HTML.
HTML5
textfield
pattern
min
max
<s:textfield type="number" name="..." value="%{...}" pattern="[0-9]+" min="40" max="700" />
Source: https://habr.com/ru/post/918299/More articles:skipping a string in an array, Perl - arraysWhat is a good approach learning opengl es 2.0? - iphonewhy does this synchronized method not work as expected? - javaIdentification If OS (Open) SUSE in Python? - pythonHow to insert records simultaneously into two database tables? - databaseDeep copy of C # object - c #jquery selected by disabled option - jquerynginx group http auth - authenticationPHP: constant as a variable in a function - phpHow to uniquely identify a monitor? - screenAll Articles