The error is suggesting that it can't find an entry for "status" in the
page scope of your page. Do you still have the <c:forEach> in there?
If you have the scope attribute, make sure it's set to page. Otherwise
you'll have to replace pageContext with request, or session depending on
your choice of scope.
K.C.
[EMAIL PROTECTED] wrote:
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]