Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

problem with jstl

 
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Karthik Rajendiran
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'm gonna teach you a lesson! Start by looking at this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic