Does anyone know how to instantiate a "DynaValidatorForm" declared in the
"validation.xml" file within Java code?

  <formset>   
    <form name="employeeForm">
      <field property="emailAddress"
             depends="required,email">
        <arg0 key="general.emailAddress"/>       
      </field>
      <field property="anniversaryDate"
             depends="required,date">
        <arg0 key="general.anniversaryDate"/>
        <var>
          <var-name>datePatternStrict</var-name>
          <var-value>MM/dd/yyyy</var-value>
        </var>
      </field>
   </form>            
 </formset>   

More specifically, I want this form, used by my JSP, to contain
pre-populated data from the database.  Therefore, it is desired to have my
action to instantiate the form bean and pre-populate it -- versus letting
the Struts framework create one with default values.  In Struts 1.0, I just
did the following in my action:

 EmployeeForm employeeForm = new EmployeeForm();

But this won't work using dyna forms in Struts 1.1 since there is no
"EmployeeForm" Java class.

Thanks!


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to