How To Validate Html Tag Using Struts 2
I have one JSP page I have action class Us
Solution 1:
You have to use some Struts2 tags. If you do not want to use <s:textfield> tag then use <s:fielderror> tag which renders field errors.
Solution 2:
The validation works fine on html tags, i.e. <form<input if the name attribute matches the fieldName specified in the validation.xml.
Post a Comment for "How To Validate Html Tag Using Struts 2"