Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics 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 Search this Thread Display Modes
  #1 (permalink)  
Old August 4th, 2003, 02:34 PM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ch15: can't get JSTL to be recognized

I've tried everything to try to get the Ch15 struts example to "recognize" the JSTL library. The error is:


org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core_rt) cannot be resolved in either web.xml or the jar files deployed with this application

I've tried putting the jstl.jar and standard.jar in my application lib directory, in tomcat's common/lib, putting entries in web.xml, leaving them out of web.xml but I still keep getting the same error. I have tried putting in the tld files in the WEB-INF directory and leaving them out. I have seen many conflicting examples of what to do.
I am using jstl 1.0.2 with tomcat 4.1.24.on a linux machine. Anyone know where the files are supposed to go to make the chapter 15 struts example work?

Reply With Quote
  #2 (permalink)  
Old August 8th, 2003, 04:32 PM
Authorized User
 
Join Date: Aug 2003
Location: Coventry, , United Kingdom.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is that Beginning JSP Web Development or Beginning JSP 2.0?

I haven't worked with this particular permutation of JSTL and web container, but what is worth trying is putting the tld in WEB-INF (or anywhere else) and map the taglib declaration directly to the tld.

<%@taglib uri="/WEB-INF/jstl_core_rt.tld" prefix="c"%>

Not my preferred way of setting up taglibs, but it should work whatever happens.

By the way, is that plain vanilla Tomcat 4 or one of the JSP 2.0 preview versions? Cause the _rt taglib isn't going to be very useful outside a JSP 2.0 container, you won't get EL support.

HTH

 - Peter

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
ruby is not recognized.... Crippy RoR Ruby on Rails 1 July 16th, 2008 08:37 AM
String was not recognized as valid datetime thillaiarasu Visual Studio 2005 2 November 2nd, 2007 05:19 AM
Database changes not recognized until restart semilemon C# 5 April 26th, 2006 06:19 PM
not recognized nachtegaal9999 ASP.NET 1.0 and 1.1 Basics 0 April 25th, 2006 02:04 PM
'net' is not recognized as a command ababb BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 7 December 20th, 2004 02:31 PM



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


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