Please look at the documentation at

http://struts.apache.org/2.x/docs/type-conversion.html

All you have to do is expose a collection of your
student value object in the action; you might not even
need to set up the conversion properties file (I can
never remember) and reference the appropriate field
names in your form:

<s:textfield value="StudentVO[1].name"/>

etc.

d.

--- Rajagopal_Yendluri wrote:
> I am using struts2, Struts-Layout will not support.
> 
> 
>  -----Original Message-----
> From: nagesh.kumar
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 30, 2007 3:04 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Multiple Textboxes with same name.
> 
> Use Struts-Layout tag library for this fucntionality
> and use DATAGRIG
> component in this 
> 
> Thanks & Regards
> NAGESH Reddy 
> 
> -----Original Message-----
> From: Rajagopal_Yendluri
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 30, 2007 2:43 PM
> To: Struts Users Mailing List
> Subject: RE: Multiple Textboxes with same name.
> 
> Hi,
> 
>   Thanks for all of your support.
> 
> Here is my requirement,
>   
> I have to add the students information ( studentname
> & collegename) in
> jsp
> pages. Say I want to add 5 students information (5
> studentnames and
> 5 collegenames).
> 
> I have a StudentVO, how can I get all this info to
> my action as a
> collection
> of StudentVO.
> 
> Please post some code.
>  
> 
> 
> 
> -----Original Message-----
> From: Rajagopal_Yendluri
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 26, 2007 12:29 PM
> To: Struts Users Mailing List
> Subject: RE: Multiple Textboxes with same name.
> 
> 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]
> 
> 
> 
> 
> 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]
> 
=== message truncated ===


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

Reply via email to