Hi,
I have the following DynaValidatorForm :

       <form-bean name="loginForm" type="
org.apache.struts.validator.DynaValidatorForm">
                <form-property name="login" type="java.lang.String" />
                <form-property name="password" type="java.lang.String" />
       </form-bean>
       <action
           path="/Login"
           type="controllers.submits.LoginAction"
           name="loginForm"
           input="/Error.do"
           validate="true"
           scope="request">
               <forward name="setup_page"
path="/Setup.do?method=setupPage"/>
        </action>


How am I supposed to get the parameters of this Form bean in the Action
class ?

public class LoginAction extends Action {

   public ActionForward execute(
           ActionMapping mapping, ActionForm form,
           HttpServletRequest request, HttpServletResponse response)
           throws Exception {

           ???  myForm = ( ??? ) form;

           String username = myForm.getLogin();

           [...]



Thank u for any help.

Reply via email to