struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Volpe" <str...@childrencare.com>
Subject Re: How do I populate a DynaValidatorForm?
Date Thu, 25 Sep 2003 21:35:38 GMT
Hi Mick,

This does not appear to be working.  I was also wondering let's say
in my struts-config I have two different DynaValidator forms defined.
Both forms have the same property say "units".  I am not using a Constants.
but how would it know which units needs to be populated?

Thanks,
Barry


----- Original Message ----- 
From: "Mick Knutson" <mickknutson@hotmail.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Thursday, September 25, 2003 2:24 PM
Subject: Re: How do I populate a DynaValidatorForm?


> In the Action itself, there is a form object already created. Then this
> should work inside the action:
> ( ( DynaActionForm ) form ).set( Constants.USER_ID_KEY, "5");
>
> ---
> Thanks
> Mick Knutson
> http://www.baselogic.com
>
> +001(805) 563-0666 Office
> +001 (708) 570-2772 Fax
> ---
>
> ----- Original Message ----- 
> From: "Barry Volpe" <struts@childrencare.com>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Sent: Thursday, September 25, 2003 2:16 PM
> Subject: How do I populate a DynaValidatorForm?
>
>
> > With an Action Form we do the following:
> >
> > form = new UserForm();
> > form.setUserid("5");
> >
> > What is the equivalent for a DynaValidatorForm?????
> >
> > Let's say my DynaValidatorForm is myForm
> >
> > Of course this does not work (compiler does not know what myForm
is.)....
> >
> > DynaValidatorForm dynaForm = (DynaValidatorForm)myForm;
> >
> > myForm.setUserid("5");
> >
> >
> > Thanks,
> > Barry
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message