Okay...
I tried the following:
<html:select name="historyItems" property="scheduleTypeId" indexed="true"
styleClass="dropdowns2"
onchange="addTableRow('historyTable',
's<%=((javax.servlet.jsp.jstl.core.LoopTagStatus)
pageContext.getAttribute("status")).getIndex()%>')">
<html:optionsCollection name="dynaCWWHistoryForm" property=
"scheduleTypes" label="label" value="value"/>
</html:select>
and I get this error:
Error 500: /WEB-INF/personal/timeAndAttendance/cWWHistory.jsp(215,129)
Attribute status has no value
I'd really like to get this working, I will then spend some time looking
into upgrading to a later version of Struts ti use the EL tags.
This upgrade will give me more work than I had anticipated... but in the
end it is GOOD extra work ! :>
I think Dave's got it. Use the struts-el tags if you want to have EL
expressions instead of RT expressions (<%= ... %>)
If you want/have to stick with RT, then you'd need this instead of
${status.index}
<%= ((javax.servlet.jsp.jstl.core.LoopTagStatus)
pageContext.getAttribute("status")).getIndex() %>
K.C.