This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSTL 1.1 uri should be Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSTL 1.1 uri should be "core_rt" ?" Watch "JSTL 1.1 uri should be "core_rt" ?" New topic
Author

JSTL 1.1 uri should be "core_rt" ?

Vince Hon
Ranch Hand

Joined: Feb 11, 2003
Posts: 117
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


Vince Hon<br /> <br />SCJP 1.4 | SCWCD | SCBCD <br /><a href="http://vincehon.homeip.net:8000/VJW" target="_blank" rel="nofollow">http://vincehon.homeip.net:8000/VJW</a>
John Wolf
Ranch Hand

Joined: Feb 18, 2002
Posts: 64
Vince,

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



SCJP 1.2, SCJP 1.4, SCJA, SCWCD 1.4<br /> <br />------------------------------<br />
Vince Hon
Ranch Hand

Joined: Feb 11, 2003
Posts: 117
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" %>
 
Consider Paul's rocket mass heater.
 
subject: JSTL 1.1 uri should be "core_rt" ?
 
Similar Threads
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
jstl is not working
JSTL EL language not resolving
JSTL not working
JSTL : not working with JSP 2.0