Look in the archives. There's tons of stuff on this there. I posted a full working example recently too.
|---------+----------------------------> | | "viji.george" | | | <[EMAIL PROTECTED]| | | nd.com> | | | | | | 09/03/2004 08:07 | | | AM | | | Please respond to| | | "Struts Users | | | Mailing List" | | | | |---------+----------------------------> >------------------------------------------------------------------------------------------------------------------------| | | | To: <[EMAIL PROTECTED]> | | cc: | | Subject: form bean for jsp form with indexed text property | >------------------------------------------------------------------------------------------------------------------------| Hi friends, i have a jsp page in which many records that are retrieved from a db are stored in an collection. i think, to put the value in the text property i will have to use indexed property, but what do i do for the form bean??? Is the following code true : i suppose nameList is an ArrayList with data in it. It contains a bean with 2 attributes " id " and " name " i want to display both attributes in different text properties. <html:text property="name" name="nameList" indexed="true" size="20"/> in which attribute of text property do i write the name of the data member? And in the form bean on submit... till now the attributes, 2 of them were of type string in the bean, when i allow indexed property for text then how do i store values in form bean? thank you. Viji George Information Systems, The Arvind Mills Ltd., Naroda, Ahmedabad. Phone-(079)22203030 Ext -2352 [EMAIL PROTECTED] (See attached file: C.htm)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]