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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to