I have a form field on my JSP that's being conditionally displayed based on the
status of servlet context attribute:

<logic:equal name="mode" value="<%=Globals.REQUIRED%>">
    <html:text property="myField" size="15" />
</logic:equal>

I'm using the Struts validator to validate this field:

<field property="myField" depends="required,mask,maxlength">
...
</field>

Obviously, I only want the client-side Javascript validations to fire if the
field is present.  

Is there a way in VALIDATION.XML to conditionally include/exclude the Javascript
validations, so they don't fire if the field isn't present?  (They're currently
firing and failing, stopping the other client-side validations as well.)

Thanks.

Jay

| Vertical Technology Group
| http://www.vtgroup.com/




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to