Thanks Dave.

-----Original Message-----
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 25, 2007 8:29 PM
To: Struts Users Mailing List
Subject: Re: Multiple Textboxes with same name.

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]




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]

Reply via email to