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:27:56 GMT
that will be because the tag lib is imported so that will work, but your webapp is not running
in 2.4 mode.

you mention you changed your server.xml .. that's wrong. i said web.xml and this will be at

webapps/yourwebapp/WEB-INF/web.xml

Allistair.

> -----Original Message-----
> From: sbeam [mailto:sbeam@onsetcorps.net]
> Sent: 02 December 2004 13:24
> To: Tomcat Users List
> Subject: Re: JSTL forEach acting funny
> 
> 
> 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
> 
> 


<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