GeeCON Prague 2014*
The moose likes JSP and the fly likes Unable to use taglib directive in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Unable to use taglib directive in jsp" Watch "Unable to use taglib directive in jsp" New topic
Author

Unable to use taglib directive in jsp

Ritika Saxena
Ranch Hand

Joined: Jul 02, 2006
Posts: 51
Hi,
I have created a web project and running it using Tomcat 5.5
I am trying to use JSTL in my jsp.On writing the taglib directive in jsp, it gives me the following error:
------------
description The server encountered an internal error () that prevented it from fulfilling this request.

exception

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
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)..........

-------------

Do I need to make some changes in web.xml also in order to use the tag library?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

You may have forgotten to put the necessary libs in the lib directory.
Make sure you have put jstl.jar and standard.jar in there.

Refer to the FAQ:
http://faq.javaranch.com/view?JstlTagLibDefinitions


[My Blog]
All roads lead to JavaRanch
Ritika Saxena
Ranch Hand

Joined: Jul 02, 2006
Posts: 51
Hi,
I have already included these jars: jstl.jar and standard.jar but this error is still present.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Are you using version 2.4 of the servlets spec ?
Please check the following too:
http://faq.javaranch.com/view?ServletsWebXml
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Ritika Saxena:
Hi,
I have already included these jars: jstl.jar and standard.jar but this error is still present.


Included them where, how?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61305
    
  66

And, are you sure that you are using the correct version of the JSTL?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to use taglib directive in jsp