tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: JSTL forEach acting funny
Date Thu, 02 Dec 2004 13:07:10 GMT
you need

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

at the top of your jsp though.

> -----Original Message-----
> From: sbeam [mailto:sbeam@onsetcorps.net]
> Sent: 02 December 2004 13:06
> To: Tomcat Users List
> Subject: Re: JSTL forEach acting funny
> 
> 
> On Thursday 02 December 2004 07:39 am, Allistair Crossley wrote:
> > for a question on forEach I would expect you to have copied in the 
> forEach part ;) i am surprised if you are seeing the actual dollar 
> signs and braces as tomcat should be picking those up as expression 
> language. is there any errors in stdout? also, which scope are you 
> placing your results into and how are you placing those 
> results there, 
> i.e what is row? what value are you suppluing items in forEach ...
> > 
> > etc.. more info people!
> > 
> 
> Well its exactly like on the HOWTO page I linked to, you can see the 
> whole thing there, including what my web.xml and server.xml 
> files look 
> like since I followed this by letter.
> 
> Actually I just found that passing a nonexistent collection token to 
> forEach results in the same thing - it doesn't loop, and it doesn't 
> error, and just outputs everything between the 
> <c:forEach>...</c:forEach> tags as if nothing happened. To wit:
> 
> <c:forEach var="foo" items="${thisIsANonExistentCollection}">
>     foo is ${foo}<br/>
> </c:forEach>
> 
> just gives me:
> 
> foo is ${foo}
> 
> in the browser. Of course this behavior differs from every reasonable 
> expectation of what a foreach type construct should do. So is there 
> some misconfiguration?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com">www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message