GeeCON Prague 2014*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes problem with jstl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "problem with jstl" Watch "problem with jstl" New topic
Author

problem with jstl

MInu
Ranch Hand

Joined: Oct 09, 2003
Posts: 517
Hello...

When i am trying to test a jstl application...
i got this error

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

i hav placed both jstl.jar and standard.jar in the lib directory.

can anyone suggest a soln.
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
Thanks


God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
Jingh Yi
Ranch Hand

Joined: Mar 23, 2005
Posts: 90
Two things to get jstl working:

1. Download jar's from http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/jakarta-taglibs-standard-1.1.2.zip

and unzip

2. find 'jstl.jar' and put it in /WEB-INF/lib dir of your web application.

I assume you use Tomcat 5.0, right? If so, your jstl tags will work.

Good luck!
Jingh Yi
Ranch Hand

Joined: Mar 23, 2005
Posts: 90
Two more things:

1. put standard.jar in WEB-INF/lib;
2. put

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

in the beginning of your jsp.
Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 211
Hello Jin

I think The URI should be


Try placing the standard.jar and jstl.jar in the lib directory of ur webapp
and classpath
if this didnt work
try placing tlds in webapps\<YOUR WEBAPP>\WEB-INF\tld directory


SCJP 1.4 SCWCD 1.4 SCDJWS 1.4
Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 211
Hello min,
If you are using tomcat older version
***THE FOLLWOING IS OPTIONAL FROM TOMCAT 5 because the container itself map these

Try placing this web.xml if older version of tomcat is used

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with jstl