S2 will handle indexed form names properly, so you
could have an action property defined as, say, "List
usernames" and name the form elements "username[0]"
etc.

http://struts.apache.org/2.x/docs/type-conversion.html
may help, towards the bottom.

d.

--- Rajagopal_Yendluri <[EMAIL PROTECTED]>
wrote:

> Hi,
> 
> I Have the following requirement in my project and I
> am new to struts2.
> 
> 
> I have to enter the data for Users: say I want to
> add 10 usernames from
> UI and I want to store all this usernames in
> database.
> 
>       For EX: my UI Looks like this
> 
>               USERNAME: 
>               ----textbox------
>               ----textbox------
>               ----textbox------
> 
> And I have to store all this data in Databsae.
> 
> I know if it is one textbox we have a property in
> action with
> getter/setter methods and we can get the value.
> 
> Let me know how to deal with this kind of form.
> 
> Regards,
> Rajagopal
> 
> 
> 
> DISCLAIMER:
> This email (including any attachments) is intended
> for the sole use of the intended recipient/s and may
> contain material that is CONFIDENTIAL AND PRIVATE
> COMPANY INFORMATION. Any review or reliance by
> others or copying or distribution or forwarding of
> any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended
> recipient, please contact the sender by email and
> delete all copies; your cooperation in this regard
> is appreciated.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to