Here is the code: action .java: public class EditColActionInit extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
// form arrives as null DynaValidatorForm myForm = (DynaValidatorForm) form; } struts-config: <form-bean name="newRunVer2EditColForm" type="org.apache.struts.validator.DynaValidatorForm"> <form-property name="label" type="java.lang.String"/> </form-bean> ... <action path="/NewRunVer2/editColInit" type="webfabis.newRunVer2.controller.EditColActionInit" name="newRunVer2EditColForm" scope="request" validate="true" input="/NewRunVer2/editCol.jsp"> <forward name="failure" path="/mainMenu.jsp"/> <forward name="success" path="/NewRunVer2/editCol.jsp"/> </action> ... <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/webfabis/defaultroot/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml"/> <set-property property="stopOnFirstError" value="false"/> </plug-in> ... validation.xml: <form-validation> <formset> <form name="newRunVer2EditColForm"> <field property="label" depends="required"/> </formset> </form-validation> pls help.! -- sledge -- View this message in context: http://www.nabble.com/DynaValidatorForm-is-null-%28from-ActionForm-in-execute%29-tp22120932p22120932.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org