Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning JavaServer Pages
This is the forum to discuss the Wrox book Beginning JavaServer Pages by Vivek Chopra, Jon Eaves, Rupert Jones, Sing Li, John T. Bell; ISBN: 9780764574856
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaServer Pages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 26th, 2011, 09:48 AM
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

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

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

${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" />
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:

[tomcat's webapps directory]\playground
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.

Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 2, error uri cannot be resolved in either boylevel BOOK: Beginning JavaServer Pages 2 November 21st, 2007 12:54 PM
How do I get only the filename of the reffered URI shekhar_249 General .NET 1 August 25th, 2006 06:40 AM
Tagdir problem Tecris BOOK: Beginning JavaServer Pages 1 November 4th, 2005 11:39 PM
Referrer and Uri druid2112 General .NET 1 April 20th, 2004 12:54 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.