Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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

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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 11:54 AM
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 10:39 PM
Referrer and Uri druid2112 General .NET 1 April 20th, 2004 12:54 PM



All times are GMT -4. The time now is 12:15 AM.


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