Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jstl 1.0 to jstl 1.1

843840Oct 18 2007 — edited Oct 19 2007
I have a Dynamic Web Project made by Eclipse. I would like to change the version on jstl i'm using.

in WEB-IF/lib I putted the two jar files jstl.jar and standar.jar
in WEB-IF/tld I putted the tag libraries

Here you can se part of may web.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 " >
...
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c-1_0.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c-1_0-rt.tld</taglib-location>
</taglib>
...
</web-app>

Now if i create a jsp inserting this code:

...
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
...
<c:out value="${1+3}"/>
...

The output will be: '${1+3}' instead of '4'

It seems the EL it's not interpretated... but I don't understand why... Indeed as you can see the version web.xml is 2.4...

Anyone knows where is my error?

Thanks for Helping me.

P.S.
Sorry for my English
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2007
Added on Oct 18 2007
11 comments
383 views