Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
| 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 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
 
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?

 
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





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





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