I'm trying to understand the interplay between the struts html- tags &
JSTL.
When using the c:forEach I'm not able to reference the page scope variable
in an html:link paramName attribute that's within the loop if the
Collection is empty or does not exist. I get a servlet exception - "
[ServletException in:dealerSearchContent.jsp] Cannot find bean dealerDto in
any scope "
When I use logic:iterate everything is fine. Does anyone know (or how I
can find out) if the struts tag references are resolved before the JSTL
references.
Here's an example of what does and does not work. The only difference is
which tags control the looping but with c:forEach it croaks on the
dealerDto in paramName.
====================== works
logic:iterate id="dealerDto" name="dealerList">
...snip...
html:link page="/showAuditSummary.do" paramId="dealer" paramName
="dealerDto" paramProperty="dealerNumber"> img src="<c:out value=
'${pageContext.request.contextPath}'/>/images/viewSummary.gif" width="21"
height="21" border="0" alt=""/>
/html:link>
/logic:iterate>
================================ does not work
c:forEach items="${dealerList}" var="dealerDto" varStatus="status">
...snip...
html:link page="/showAuditSummary.do" paramId="dealer" paramName
="dealerDto" paramProperty="dealerNumber"> img src="<c:out value=
'${pageContext.request.contextPath}'/>/images/viewSummary.gif" width="21"
height="21" border="0" alt=""/>
/html:link>
/c:forEach>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]