The way it works is this: You put the <html:javascript formName="myForm" > tag in a
JSP. When Struts renders that tag, it looks in the validations.xml file and finds the validation information pertaining to "myForm". It then generates javascript based on the validation rules you have specified and puts that javascript code in the HTML that is sent to the browser. Then, when users access the page on their browsers, the javascript code runs on the browser and performs validations when the submit button is pressed.
One other step that is necessary for client side validation is that you must add onsubmit="return validateMyForm(this)" in your <html:form> tag. The validateMyForm() method is generated by the <html:javascript> tag.
[ May 04, 2006: Message edited by: Merrill Higginson ]