just use whatever id you are using for the indexId of the outer nested
iterate.
<nested:iterate property="outer" indexId="fooIndex">
<nested:iterate property="inner" indexId="barIndex">
if you are using the nested EL tags or JSP2.0 you then have easy
access to display the value of any indexId ... use either <c:out
value='${fooIndex}'/> if JSTL or if JSP2.0 just ${fooIndex}
The problem is not so much that I want to display it, cause that can
also be done with <bean:write> tag, but I would like to use the outer
index value for the <html:radio ... indexed="true" />. The generated
HTML page looks like this
<input type="radio" name="org.apache.struts.taglib.html.BEAN[1].answer" value="00">00
<input type="radio" name="org.apache.struts.taglib.html.BEAN[2].answer" value="03">03
<input type="radio" name="org.apache.struts.taglib.html.BEAN[1].answer" value="00">00
<input type="radio" name="org.apache.struts.taglib.html.BEAN[2].answer" value="03">03
and so on. The number in BEAN[n] is the "wrong" one. It should be the same one in the
first two and in the second two like this:
<input type="radio" name="org.apache.struts.taglib.html.BEAN[1].answer" value="00">00
<input type="radio" name="org.apache.struts.taglib.html.BEAN[1].answer" value="00">00
<input type="radio" name="org.apache.struts.taglib.html.BEAN[2].answer" value="03">03
<input type="radio" name="org.apache.struts.taglib.html.BEAN[2].answer" value="03">03
So the outer indexId, fooIndex, should be the one replacing 'n' in BEAN[n] instead of
barIndex.
Claus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]