D
Dean Rettig
Inside the ActionForm "reportform" I have this:
<html:text property="selection[0]"/><bean:write name="reportform"
property="label[0]"/><br>
<html:text property="selection[1]"/><bean:write name="reportform"
property="label[1]"/><br>
<html:text property="selection[2]"/><bean:write name="reportform"
property="label[2]"/><br>
<html:text property="selection[3]"/><bean:write name="reportform"
property="label[3]"/><br>
<html:text property="selection[4]"/><bean:write name="reportform"
property="label[4]"/><br>
<html:text property="selection[5]"/><bean:write name="reportform"
property="label[5]"/><br>
Is there any way to do this as a loop? My ActionForm knows how many
items are in the array but my JSP doesn't. My form also knows what
the labels are so I need the loop to iterate thru both {selection and
label} arrays at the same time.
I've spent 6 hours on this and given up....
thanks,
Dean
<html:text property="selection[0]"/><bean:write name="reportform"
property="label[0]"/><br>
<html:text property="selection[1]"/><bean:write name="reportform"
property="label[1]"/><br>
<html:text property="selection[2]"/><bean:write name="reportform"
property="label[2]"/><br>
<html:text property="selection[3]"/><bean:write name="reportform"
property="label[3]"/><br>
<html:text property="selection[4]"/><bean:write name="reportform"
property="label[4]"/><br>
<html:text property="selection[5]"/><bean:write name="reportform"
property="label[5]"/><br>
Is there any way to do this as a loop? My ActionForm knows how many
items are in the array but my JSP doesn't. My form also knows what
the labels are so I need the loop to iterate thru both {selection and
label} arrays at the same time.
I've spent 6 hours on this and given up....
thanks,
Dean