set a list from getmodel()

2010-07-01 Thread Amol Ghotankar
Dear List memeber, I have a urgent requirement in which I will have to populate a list or set and this set / list will be getModel() for an struts action. How to write jsp code so that the set is populated directly here. Like say I have a list of address and from form address 1 address 2

Re: set a list from getmodel()

2010-07-01 Thread Amol Ghotankar
Dear List members, More over I don;t know how many address will the user enter, it can 0 or 10, need to generate jsp code dynamically Address [+] How are we going to achieve this type of functionality. What are best practices in setting multiple values of same object from FORM or how to

Re: set a list from getmodel()

2010-07-01 Thread Alex Rodriguez Lopez
As far as I remember, for Struts to populate a list you just give the same name for a setter in the action that takes a List as a parameter as the element(s) in the Jsp. So you can have 1 textboxes *with same name*, and if this name happens to map to a list, the list will get populated