You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ted Husted <hu...@apache.org> on 2003/10/28 22:24:55 UTC
Re: Dynamic Text Boxes - Urgent .Pl help - Struts
You can define an Array to catch multiple parameters of the same name.
http://husted.com/struts/tips/006.html
HTH, Ted.
[name withheld] wrote:
> Hi Husted,
>
>
> I Have a Struts jsp with with some Dynamic text boxes. I have
> array list that contain data for these text boxes.I put this List in
> the request object in the action class.
> Here The problem is all text boxes names are same.
>
> Example java code.
> For (i=0;i<list.size ;i++)
> {
> <input type =text name = chargeCode value =list.code >
> }
>
> Actually I am doing this one by struts and Jstl for each.
> Here Text field name is same for all. How Can I create those many
> setter/Getter methods without knowing.
> Please let me know How to handle this with Jsp - form bean.
>
> I really appriciate your help.
>
> Thanks,
--
Ted Husted,
Junit in Action - <http://www.manning.com/massol/>,
Struts in Action - <http://husted.com/struts/book.html>,
JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org