You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "viji.george" <vi...@arvind.com> on 2004/09/03 14:07:29 UTC

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
viji.george@arvind.com