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
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
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
3 matches
Mail list logo