Try using the indexed attribute of the html:text tag.

<html:text name="myForm" indexed="true" property="costcenter" 
size="12"/>

-----Original Message-----
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 10:13 AM
To: Struts Users Mailing List
Subject: String Array


I'm trying to populate a table with some data from a collection and a 
column with a text field do enter data in.
I'm trying to make the field in that column a String array but it does 
not seem to be working?

<logic:iterate id="searchresult" indexId="i" name="users">
                  <tr>
                    <td>
                      <bean:write name="searchresult" property="username"/>
                    </td>
                    <td>
                      <html:text name="myForm" property="costcenter[i]" 
size="12"/>
                    </td>
                  </tr>
                  </logic:iterate>

it does not like the i inside the array but I don't know any other way 
to do it cause I don't know the size of the array until I get the 
collection?

Any ideas?

-Thanks Gus


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

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

Reply via email to