Please help me in learning how to code when I am working with DynaValidatorForm. 1. in my struts-config.xml, I have:
2. My PostForm.java is like:
3. in my action class (see the code below) 3.1. do I cast the form to DynaActionForm? or I should cast the form to DynaValidatorForm? 3.2. Can I use the copyProperties() method of the BeanUtils to convert the form to a bean? BeanUtils.copyProperties( threadBean, postForm );
4. the action mapping in my struts-config.xml is like:
It seems like you are mixing your metaphors. Why are you redefining the property in both the Java class version of the ActionForm and the properties file. You either want to do one or the other. If you are using DynaActionForms or DynaValidatorForms you do not need a class that subclasses DynaValidatorForm.
I do not quite get the idea. Please help with the drafted code for the PostForm, which is of type="org.apache.struts.validator.DynaValidatorForm" 1. which class should be imported? 2. how do I code the reset( ... )?