If I dont enter anything validator should check for missing input and redirect to the failure forward path. Right? And control shouldnt be transferred to the Action class tied to the form?
But I see always control going to the Action class. Would anyone please tell me what I am doing wrong? Here is my struts-config.xml -------------------------------------- <form-beans> <form-bean name="loginForm" dynamic="true" type="org.apache.struts.validator.DynaValidatorForm"> <form-property name="email" type="java.lang.String" /> <form-property name="password" type="java.lang.String" /> </form-bean> </form-beans> <action-mappings> <action path = "/login" type="com.mediamania.struts.security.LoginAction" scope="request" name="loginForm" validate="true"> <forward name="Success" path="/index.jsp" redirect="true"/> <forward name="Failure" path="/jsp/security/login.jsp" redirect="true"/> </action> </action-mappings> <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validation/validator-rules.xml, /WEB-INF/validation/validation.xml" /> </plug-in> _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>