Hi All,

        I am a newbie to struts and taglibs, was trying to display text fields
dynamically using "html:iterator". Below is the scenario I was
trying out.

        This is the snippet from my jsp to display the text fields.

        <logic:iterate id="UserDetail" name="user" property="userDetails">
          <tr>
            <td align="center">
              <html:text name="UserDetail" property="org"/>
            </td>
          </tr>
        </logic:iterate>

The html snippet for the above is something like:

        <input type="text" name="org" value="Org1">
        <input type="text" name="org" value="Org2">

But I want it to be something like:

        <input type="text" name="a" value="Org1">
        <input type="text" name="b" value="Org2">

Where the values("a" & "b") for the name attribute comes from an array
defined in the Form Bean. What are the changes required in my jsp snippet?

Also, if only it is possible to get an output as desired, does the FormBean
be modified to support this. As there won't be any getter/setter for "a" and
"b".

Appreciate any kind of help regarding this.

Regards and Thanks,
Anoop.


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

Reply via email to