M
mikelsmith
Hello all, I could use some help with the "indexId" property that is
associated with the Struts <logic:iterate> tag. I am using the iterate
tag as follows:
<logic:iterate id="someId" name="someName" property="someCollection"
indexId="idx" type="java.lang.String" >
I am iterating this collection to dynamically create the correct number
of text fields on my JSP. I need to write out the current text field
line number (which I need to get from idx). My problem is that the
<logic:iterate> tag starts at zero (0) instead of one (1). I need to
increment this variable before writing it out. How do I do this??
I've tried: <%=idx+1%> but this does not work because idx is of type
Integer, not int.
Thanks in advance.
associated with the Struts <logic:iterate> tag. I am using the iterate
tag as follows:
<logic:iterate id="someId" name="someName" property="someCollection"
indexId="idx" type="java.lang.String" >
I am iterating this collection to dynamically create the correct number
of text fields on my JSP. I need to write out the current text field
line number (which I need to get from idx). My problem is that the
<logic:iterate> tag starts at zero (0) instead of one (1). I need to
increment this variable before writing it out. How do I do this??
I've tried: <%=idx+1%> but this does not work because idx is of type
Integer, not int.
Thanks in advance.