DEVFYI - Developer Resource - FYI

How can one enable front-end validation based on the xml in validation.xml?

Struts Questions and Answers


(Continued from previous question...)

88. How can one enable front-end validation based on the xml in validation.xml?

The <html:javascript> tag allows front-end validation based on the xml in validation.xml.
For example the code:

generates the client side JavaScript for the form "logonForm" as defined in the validation.xml file.
The <html:javascript> when added in the JSP file generates the client side validation script.

Other Interview Questions