You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Graham <dg...@hotmail.com> on 2003/03/06 05:18:43 UTC

Re: Can be used for editable fields?

Simply put an <html:text> tag inside your iteration.  All your text inputs 
will be the same name so you need a String[] variable in your form bean to 
hold all of the entries.

David



>From: "Samit Goyal" <sa...@tatainfotech.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: "strtus list" <st...@jakarta.apache.org>
>Subject: Can <logic:iterate> be used for editable fields?
>Date: Thu, 6 Mar 2003 09:57:25 +0530
>
>Hi all,
>
>I am forwarding again this mail to you all, Since i didnt get any reply. 
>May
>be that my problem was not clear. I am putting this again in a different
>way.
>
>I konw how to display the list of un-editable fields by using
><logic:iterate> but i want to display list of Editable fields, so that upon
>submission of the form, all the user enterd values shall be stored in some
>form bean variable!
>
>What's the easiest way out. i dont want to create a different variable in
>the form bean for each individual text field displayed on the screen.
>
>Please excuse me for what may be a stupid question for you! but I am new to
>the struts and desperately looking for the solution.
>
>Regards,
>Samit
>
>
> > Hi all,
> >
> > I am having a JSP which contains 12 rows of editable fields. The each 
>row
> > contains same type of editable fields.
> >
> > Now, how shall i handle it in the Form Bean. Shall i create 12 different
> > fields for each row or can I use Array/List for that.
> >
> > Will struts set the fields in the Array Object of form bean
>automatically??
> >
> > Thanks in Advance.
> > Regards,
> > samit
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Can be used for editable fields?

Posted by Samit Goyal <sa...@tatainfotech.com>.
Thanks a lot David . You solved my big problem.

I will try this out...hope i wont need to disturb you again :-)

Thanks again.,
Samit



----- Original Message -----
From: "David Graham" <dg...@hotmail.com>
To: <st...@jakarta.apache.org>
Sent: Thursday, March 06, 2003 9:48 AM
Subject: Re: Can <logic:iterate> be used for editable fields?


> Simply put an <html:text> tag inside your iteration.  All your text inputs
> will be the same name so you need a String[] variable in your form bean to
> hold all of the entries.
>
> David
>
>
>
> >From: "Samit Goyal" <sa...@tatainfotech.com>
> >Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> >To: "strtus list" <st...@jakarta.apache.org>
> >Subject: Can <logic:iterate> be used for editable fields?
> >Date: Thu, 6 Mar 2003 09:57:25 +0530
> >
> >Hi all,
> >
> >I am forwarding again this mail to you all, Since i didnt get any reply.
> >May
> >be that my problem was not clear. I am putting this again in a different
> >way.
> >
> >I konw how to display the list of un-editable fields by using
> ><logic:iterate> but i want to display list of Editable fields, so that
upon
> >submission of the form, all the user enterd values shall be stored in
some
> >form bean variable!
> >
> >What's the easiest way out. i dont want to create a different variable in
> >the form bean for each individual text field displayed on the screen.
> >
> >Please excuse me for what may be a stupid question for you! but I am new
to
> >the struts and desperately looking for the solution.
> >
> >Regards,
> >Samit
> >
> >
> > > Hi all,
> > >
> > > I am having a JSP which contains 12 rows of editable fields. The each
> >row
> > > contains same type of editable fields.
> > >
> > > Now, how shall i handle it in the Form Bean. Shall i create 12
different
> > > fields for each row or can I use Array/List for that.
> > >
> > > Will struts set the fields in the Array Object of form bean
> >automatically??
> > >
> > > Thanks in Advance.
> > > Regards,
> > > samit
> > >
> > >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org