Sunday, December 5, 2010

struts : client-side validation

When run on the client side, the validations will not allow the form to be submitted until they have all passed.


To enable client-side validation, you have to place the HTML Tag Library's javascript tag in each JSP for which you
want validation performed, as shown here:
<html:javascript formName="logonForm"/>



The javascript tag requires that you use the formName attribute to specify the name of a <form> definition from the
validation.xml file

No comments:

Post a Comment