Hi!, I´m having trouble validating a standard form using de validation.xml file. I defined one class,MyValidatorForm that extends ValidatorForm with the fields of the form and the getters and setters methods.
In the validation.xml,when I use depends="required" for the fields I want, It works fine, And I get the messages fine With <html:errors/> in a jsp page : /pages/ErrorValidation.jsp but when I use depends="required,double" or depends="required,url" It does not work. If I send a String in the form field that is supposed to be double it won´t get any error. I also have tried using some mask following the jakarta RegExp ,I tested then in http://jakarta.apache.org/regexp/applet.html. but only some mask´s works when I put them in the validation.xml.
In the struts-config.xml I have:
<plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/> </plug-in>
And in the action tag that uses this validation I have this attributes
name="MyValidatorForm" validate="true" scope="request" input="/pages/ErrorValidation.jsp"
Any help is appreciated. Miguel
Migule - we need to see what your validation.xml for the fields that aren't working looks like. The relevant JSP (for the non-working fields) may also help.
Matt
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]