I did a deeper look on my project, enabled debug output and even though on the log it says that the requestprocessor is calling validate, my validate method on my class (gave up on validation using xml) does not even get called...
Any ideas? Regards On 7/3/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
Hello there! I'm trying to use form validation (It was working, but somehow, I messed something and it quit working). Here are my files: struts-config.xml <form-beans> <form-bean name="userForm" type="com.acme.UserForm"></form-bean> </form-beans> <action path="/register" scope="request" validate="true" type="com.acme.RegisterAction" name="userForm" input="/registerScreen.do"> <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/> </plug-in> <form name="userForm"> <field property="name" depends="required"> <msg name="required" key="error.nameRequired"/> </field> <field property="email" depends="required"> <msg name="required" key="error.emailRequired"/> </field> </form> My UserForm extends ValidatorActionForm! When the user submits, instead of returning to the input page and display the errors he's redirect to the action that deals with the register. Any ideas? Best regards
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]