tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbeam <sb...@onsetcorps.net>
Subject Re: JSTL forEach acting funny
Date Thu, 02 Dec 2004 13:24:00 GMT
On Thursday 02 December 2004 08:12 am, David Smith wrote:
> As I understand it, you need to make sure Tomcat knows you want the 
2.4 
> spec as opposed to the 2.3 spec to use JSTL semantics like ${}.  What 
> does your web.xml file show at the top?  Does it use the 2.4 schema?
> 
> --David

I think so. Actually I am removing all the DB stuff to narrow this down 
a bit. Here is my new server.xml:
=========
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
</web-app>
=========

And now, even weirder, I use the following simplified JSP:
=========
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:forTokens var="foo" items="5,6,7,8" delims=",">
    foo is ${foo} <br/>
</c:forTokens>
=========
and got 
foo is ${foo}
foo is ${foo}
foo is ${foo}
foo is ${foo} 

So now it is looping but the ${} is still not parsed.


---------------------------------------------------------------------
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