Hi I have a single form shared among a few jsp pages. Each jsp references the following after their form tag:
Jsp0.jsp <html:javascript formName="WorkOrderForm" page="0"/> Jsp1.jsp <html:javascript formName="WorkOrderForm" page="1"/> The corresponding validation.xml is: <form name="WorkOrderForm"> <field property="orderNumber" depends="required,mask" page="0"> <msg name="mask" key="WorkOrderForm.orderNumber.maskmsg"/> <arg0 key="WorkOrderForm.orderNumber.displayname"/> <var> <var-name>mask</var-name> <var-value>${workordernumber}</var-value> </var> </field> <field property="province" depends="required" page="1"> <arg0 key="WorkOrderForm.province.displayname"/> </field> </form> The code that is generated from this tag refers to the correct validations for the given page; but upon validation of the Jsp1.jsp form; it seems that the validations specific to Jsp0.jsp are excuted. Reviewing the generated code on Jsp1.jsp the correct validations are listed in the resulting file. Also, if I include onsubmit="return validateWorkOrderForm(this);" in the Jsp1.jsp file... Within the html:form tag the correct validations fire; but the results are displayed in a popup. So, why does struts seem to fire the previous forms validations if I don't do the onsubmit call and fire the correct ones when I do include that. My application wants to display the error messages via html. My other ooption is to have many many forms each specific to a screen... Something which I would like to avoid. Any help would be appreciated. Thanks in advance Reg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]