Thread: tagdir uri
View Single Post
  #1 (permalink)  
Old May 26th, 2011, 09:48 AM
thelemur thelemur is offline
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default tagdir uri

I get this error when I try to load my simple page testform.jsp

Quote:
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
Here's the complete contents of testform.jsp

Code:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html><head></head><body>

${param.argle == "bargle"} 

<form name="form1" method="post" action="testform.jsp">
	<input type="hidden" name="argle" value="bargle" />
	<input type="submit" name="submit" value="submit" />
</form></body>
it should be noted that if I remove the taglib directive the page works fine (the EL returns false before clicking the form button, and returns true if you have clicked the button).

The directory structure:

Quote:
[tomcat's webapps directory]\playground
testform.jsp
\WEB-INF
\lib
jstl.jar
standard.jar
In other words, the jstl and standard jar files are in the WEB-INF\lib directory like I understand they should be. I've looked at the tld files inside the jar. They are using http://java.sun.com/jsp/jstl/core as the uri

I have tried this exact scenario using both Tomcat 7 and Tomcat 5.5.

so, the question is,... what am I doing wrong?

At this point, I can't even get the ch06 exercises from the book to run. The WAR file will deploy, but i get the sam error above if I try to visit the page, and in the Tomcat Manager, both ch06 and playground both refuse to start.
Reply With Quote