Subject: dynamic forms validation problem From: "Tomas" <[EMAIL PROTECTED]> === Hello,
how, to make verification (validation) of dynamic forms ? in struts-config.xml is: <struts-config> . . . <form-bean name="logonForm" dynamic="true" type="org.apache.struts.validator.DynaValidatorActionForm"> <form-property name="user" type="java.lang.String" /> <form-property name="password" type="java.lang.String" /> </form-bean> <action-mappings> <action path="/logon" type="simple.LogonAction" name="logonForm" validate="true" scope="session" input="/index.jsp"> </action> </action-mappings> <!-- ========== Message Resources Definitions =========================== --> <message-resources parameter="org.apache.struts.webapp.validator.ApplicationResources"/> <!-- ========== Plug-in Definitions ============================== --> <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validator.xml"/> </plug-in> . . . </struts-config> in file validator.xml is: <form-validation> <formset> <form name="LogonForm"> <field property="user" depends="required"> <arg0 key="error.user.required"/> </field> </form> </formset> </form-validation> in web.xml is: <web-app> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>ApplicationResources</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>3</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>3</param-value> </init-param> <init-param> <param-name>validate</param-name> <param-value>true</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> </web-app> no efect in edit form, always (but still) error messages: 747375 [HttpProcessor[80][4]] DEBUG org.apache.struts.action.RequestProcessor - Validating input form properties 747375 [HttpProcessor[80][4]] DEBUG org.apache.struts.action.RequestProcessor - No errors detected, accepting input Can you help? Second question is, how to used text fields (width indexed=true) on dynamic forms? [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>