This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL 1.1 uri should be "core_rt" ?

 
Vince Hon
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot run JSTL smooth !

I have put the jtsl.jar and standard.jar from tomcat 5 to the webapp\lib according to HSB. And my web.xml is version 2.4:

<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/web-app_2_4.xsd" version="2.4">


In jsp, I put this:


When I run, I got the error: According to TLD or attribute driective in tag file, attribute test does not accept any expressions.

After searching on the web, If I changed
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
to
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

The JSTL work perfectly. Does any one can explain this ?

Thanks
 
John Wolf
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vince,

Make sure if you are using Tomcat 5.x the uri has the "jsp" in it. Example:-


 
Vince Hon
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Sadana !

I just realized that I use to old version of URI :
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

The correct one should be:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic