Well I found the problem & it's embarrassing. For the sake of others I'll
humiliate myself. The jsp I was working on was a cut/paste I had
inherited. In adding some functionality I started using the jstl tags but
neglected to see if the taglib had been declared in the jsp. Of course, it
hadn't. We all know what happens when you assume things. Hee Haw! Hee
Haw!
Adam Hardy <[EMAIL PROTECTED]> wrote on 09/27/2004 04:59:52
PM:
> When the collection is empty, it won't iterate, so you won't get an
> exception. When the dealerList is absent, you'll get an exception from
> the c:forEach tag. Put in some debug calls such as c:out
> value=dealerList.size to see if it really is doing what you think.
>
>
> On 09/27/2004 06:34 PM [EMAIL PROTECTED] wrote:
> > 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]
> >
> >
>
>
> --
> struts 1.2 + tomcat 5.0.19 + java 1.4.2
> Linux 2.4.20 Debian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]