You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Aftab Vhora <af...@oracle.com> on 2006/09/15 07:39:28 UTC

Struts with dynamically generated html:Text

Hi,

In my page I am generating text boxes dynamically(i.e. clicking on a 
button "Add more" will add a text box in my page.) Now I want to 
implement my ActionForm to capture the data entered in those dynamically 
generated text boxes.

Is it possible in struts ? If yes, please provide me the solution ASAP.

-- 
Thanks & Regards,
Aftab Vhora



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


Re: Struts with dynamically generated html:Text

Posted by Puneet Lakhina <pu...@gmail.com>.
On 9/15/06, Aftab Vhora <af...@oracle.com> wrote:
>
> Hi,
>
> In my page I am generating text boxes dynamically(i.e. clicking on a
> button "Add more" will add a text box in my page.) Now I want to
> implement my ActionForm to capture the data entered in those dynamically
> generated text boxes.
>
> Is it possible in struts ? If yes, please provide me the solution ASAP.


Yes its possible. Use indexed properties. or Map backed properties.
http://struts.apache.org/1.2.9/faqs/indexedprops.html
I actually did something exactly like that. You could follow this discussion
for some specific things about DHTML

http://servlets.com/archive/servlet/BrowseList?listName=struts-user&by=subject&from=230319

And ya Please avoid things like "ASAP". This is not paid support
http://www.catb.org/~esr/faqs/smart-questions.html

--
> Thanks & Regards,
> Aftab Vhora
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Puneet