You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Asim Ghosh <as...@yahoo.co.uk> on 2004/06/22 11:30:05 UTC
how do i get members of DynaActionForm inside Action Class
hi guys,
if somebody can give me the solution to this problem.
i am using DynaActionForm and now i want to retrieve the value of a particular field.
in execute method i have the reference of ActionForm.
asim
---------------------------------
ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself
Re: how do i get members of DynaActionForm inside Action Class
Posted by Bill Siggelkow <bi...@bellsouth.net>.
In your execute() method:
DynaActionForm myForm = (DynaActionForm) form;
String foo = (String) myForm.get("foo");
String bar = (String) myForm.get("bar");
Asim Ghosh wrote:
> hi guys,
>
> if somebody can give me the solution to this problem.
>
> i am using DynaActionForm and now i want to retrieve the value of a particular field.
>
> in execute method i have the reference of ActionForm.
>
>
> asim
>
>
> ---------------------------------
> ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: how do i get members of DynaActionForm inside Action Class
Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
execute(...){
DynaActionForm myForm = (DynaActionForm) form;
myForm.get("property");
Cheers,
> -----Original Message-----
> From: Asim Ghosh [mailto:asimghosh26@yahoo.co.uk]
> Sent: Tuesday, June 22, 2004 11:30 AM
> To: user@struts.apache.org
> Subject: how do i get members of DynaActionForm inside Action Class
>
>
> hi guys,
>
> if somebody can give me the solution to this problem.
>
> i am using DynaActionForm and now i want to retrieve the
> value of a particular field.
>
> in execute method i have the reference of ActionForm.
>
>
> asim
>
>
> ---------------------------------
> ALL-NEW Yahoo! Messenger - sooooo many all-new ways to
> express yourself
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: how do i get members of DynaActionForm inside Action Class
Posted by Robert Taylor <rt...@mulework.com>.
DynaActionForm theForm = (DynaActionForm) form;
String myValue = (String) theForm.get("myValueName");
robert
> -----Original Message-----
> From: Asim Ghosh [mailto:asimghosh26@yahoo.co.uk]
> Sent: Tuesday, June 22, 2004 5:30 AM
> To: user@struts.apache.org
> Subject: how do i get members of DynaActionForm inside Action Class
>
>
> hi guys,
>
> if somebody can give me the solution to this problem.
>
> i am using DynaActionForm and now i want to retrieve the value of a particular field.
>
> in execute method i have the reference of ActionForm.
>
>
> asim
>
>
> ---------------------------------
> ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org