p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning JavaServer Pages (http://p2p.wrox.com/forumdisplay.php?f=162)
-   -   tagdir uri (http://p2p.wrox.com/showthread.php?t=83790)

thelemur May 26th, 2011 09:48 AM

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.


All times are GMT -4. The time now is 02:48 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.