You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bs...@psl.nmsu.edu on 2005/11/29 21:36:48 UTC
How do you prepopulate a form bean with arguments from a hyperlink?
If I were going to send arguments to a normal servlet from a hyperlink I would have the following:
http://servlet_name?employeeId=xxxxxx&account=xxxxxx
I want to do the same thing for a struts application and then populate the form bean with those arguments but I can't think of how to do it.
Thank you in advance,
--Brad.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How do you prepopulate a form bean with arguments from a
hyperlink?
Posted by Brad Simonin <bs...@psl.nmsu.edu>.
Thank you very much.
--Brad
On Tue, 2005-11-29 at 14:59, Michael Jouravlev wrote:
> On 11/29/05, bsimonin@psl.nmsu.edu <bs...@psl.nmsu.edu> wrote:
> >
> > If I were going to send arguments to a normal servlet from a hyperlink I would have the following:
> > http://servlet_name?employeeId=xxxxxx&account=xxxxxx
> >
> > I want to do the same thing for a struts application and then populate the form bean with those arguments but I can't think of how to do it.
>
> Same thing. Use action name instead of servlet name. Don't forget to
> define a form and the properties, corresponding to request parameters.
>
> Michael.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How do you prepopulate a form bean with arguments from a hyperlink?
Posted by Michael Jouravlev <jm...@gmail.com>.
On 11/29/05, bsimonin@psl.nmsu.edu <bs...@psl.nmsu.edu> wrote:
>
> If I were going to send arguments to a normal servlet from a hyperlink I would have the following:
> http://servlet_name?employeeId=xxxxxx&account=xxxxxx
>
> I want to do the same thing for a struts application and then populate the form bean with those arguments but I can't think of how to do it.
Same thing. Use action name instead of servlet name. Don't forget to
define a form and the properties, corresponding to request parameters.
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org