Hi,
 
I want to generate indexed html elements via iterator. In Struts 1, I would do 
it as follows:
 
<logic:iterate name="namesForm" property="names" id="name">
    <html:text name="name" property="firstname" indexed="true" size="30"/>
    <html:text name="name" property="lastname" indexed="true" size="30"/>
</logic:iterate>
 
Then Struts 1 will generate the output like this:
 
<input type="text" name="name[0].firstname" size="30" value="">
<input type="text" name="name[0].lastname" size="30" value="">
 
<input type="text" name="name[1].firstname" size="30" value="">
<input type="text" name="name[1].lastname" size="30" value="">
... 
 
 
Now,  how can I do the same with Struts 2? I tried <s:iterator> and 
<s:textfield>. But, they don't have have equivalent attributes. Is there anyone 
who has an idea how to do it?
 
Thanks,
Willa


       
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

Reply via email to