Cast the ActionForm to a DynaBean and then use get(String property)

Niall


----- Original Message ----- 
From: "Brad Balmer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 09, 2004 1:52 PM
Subject: DynaValidatorForm help


> Using the DynaValidatorForm, how do you get the form variable data out 
> of the form inside the action?  All examples I've seen are purely the 
> setup and none show the action getting the values.
> 
> My struts-config.xml:
>         <form-bean
>             name="loginForm"
>             type="org.apache.struts.action.DynaValidatorForm">
>             <form-property name="username" type="java.lang.String"/>
>             <form-property name="password" type="java.lang.String"/>
>         </form-bean>
> 
> My validation.xml:
>   <form name="loginForm">
>     <field property="username" depends="required">
>       <arg0 key="label.username"/>
>     </field>
>     <field property="password" depends="required">
>       <arg0 key="label.password"/>
>     </field>
>   </form>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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

Reply via email to