You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Juanjo Cuadrado <jj...@gmail.com> on 2008/03/06 00:23:20 UTC
Form bean
Hi,
Where is the Form bean into the request??? What is the label??
I want to put a actionform in the request and I dont know where...
(prepopulate???)
Thanks.
Re: Form bean
Posted by Juanjo Cuadrado <jj...@gmail.com>.
Great idea!!!! Thanks!
2008/3/6, Antonio Petrelli <an...@gmail.com>:
>
> 2008/3/6, Juanjo Cuadrado <jj...@gmail.com>:
> >
>
> > Thanks Antonio, but I need to prepopulate a ActionForm from another
> Action
> > and forward it to jsp...
>
>
>
>
> I think that the best way to manage it is to put a simple bean (no
> ActionForm) that contains the values that you want to put in request
> scope,
> and use EL to put them in form elements.
>
> For example:
>
> <html:text name="name" value="${person.name}" />
>
>
> Antonio
>
Re: Form bean
Posted by Antonio Petrelli <an...@gmail.com>.
2008/3/6, Juanjo Cuadrado <jj...@gmail.com>:
>
> Thanks Antonio, but I need to prepopulate a ActionForm from another Action
> and forward it to jsp...
I think that the best way to manage it is to put a simple bean (no
ActionForm) that contains the values that you want to put in request scope,
and use EL to put them in form elements.
For example:
<html:text name="name" value="${person.name}" />
Antonio
Re: Form bean
Posted by Juanjo Cuadrado <jj...@gmail.com>.
Thanks Antonio, but I need to prepopulate a ActionForm from another Action
and forward it to jsp...
Sorry for my English.
2008/3/6, Antonio Petrelli <an...@gmail.com>:
>
> 2008/3/6, Juanjo Cuadrado <jj...@gmail.com>:
>
> > Hi,
> >
> > Where is the Form bean into the request??? What is the label??
> >
> > I want to put a actionform in the request and I dont know where...
> > (prepopulate???)
>
>
> See:
> http://struts.apache.org/1.x/faqs/newbie.html#prepopulate
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Form bean
Posted by Antonio Petrelli <an...@gmail.com>.
2008/3/6, Juanjo Cuadrado <jj...@gmail.com>:
> Hi,
>
> Where is the Form bean into the request??? What is the label??
>
> I want to put a actionform in the request and I dont know where...
> (prepopulate???)
See:
http://struts.apache.org/1.x/faqs/newbie.html#prepopulate
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org