Active5 years, 4 months ago
Currently I have taglibs set up and working correctly using the following tag at the top of my JSP pages:
Even though i am using jstl1.2 jar in my application. Still facing the same. Can yo help me with this. Org.apache.jasper.JasperException: The absolute uri: cannot be resolved in either web.xml or the jar files deployed with this. Within the zip file that you can download are two jar files, jstl.jar and standard.jar. Add jstl.jar and standard.jar to the WEB-INF/lib directory of your web application project, and include them in your project's classpath W while you work on your project.
In Maven I have the dependencies:
I need my web app to work without Internet connection i.e. not calling the URI in the taglib so I thought I could download the jstl-1.2.jar and put it in /WEB-INF/lib folder. Then I could have my tag as the following:
However, this is not working. It says that the tag library descriptor cannot be found. So my question is, how do I use JSTL in taglibs using a JAR in the WEB-INF folder, instead of calling the java sun website in the URI??
Do I need to put anything in web.xml? Do I remove my Maven dependencies? Do I need to put something in META-INF?
Any help would be much appreciated! Thanks!
LaurenLauren
1 Answer
The URI in
is not really a reference to the internet. Even after putting the Jar file in WEB-INF/lib/ you will leave the uri as that address. The servlet container is always looking for the jar in WEB-INF/lib/ and never downloads it from
http://java.sun.com/jsp/jstl/core
. That URI is more like a unique name identifying the taglib.Check for yourself by clicking the link to http://java.sun.com/jsp/jstl/core There is no jar file to download there. Its just an identifier.
developerwjkJstl Jar Download
developerwjkJsp Jstl Core
8,01222 gold badges1010 silver badges3131 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Not the answer you're looking for? Browse other questions tagged javaeclipsemavenjstltaglib or ask your own question.
Active5 days ago
Hi using
eclipse juno, dynamic web project
apache Tomcat v7.0 (which has its own jstl-1.2.1.jar) I get this error
eclipse juno, dynamic web project
apache Tomcat v7.0 (which has its own jstl-1.2.1.jar) I get this error
when I try running this jsp code
it seams not to be seeing the javax.servlet.jsp.jstl.core.LoopTag class that is in the jar
I have read something about filters blocking javax.servlet files
any help would be greatly appreciated
I have read something about filters blocking javax.servlet files
any help would be greatly appreciated
ok I think I have found the solutionjavax.servlet.jsp.jstl-1.2.1.jar
does not contain the javax.servlet.jsp.jstl.core classes
does not contain the javax.servlet.jsp.jstl.core classes
jstl-1.2.jar needs to be added as well
Jsp Jstl Core
Andrew Beatty
Andrew BeattyAndrew Beatty
Jstl Core Set
4 Answers
javax.servlet.jsp.jstl-1.2.1.jar
doesn't contain the javax.servlet.jsp.jstl.core
classes. Be sure to add jstl-1.2.jar
as well.Limited AtonementLimited Atonement
4,61922 gold badges3939 silver badges5252 bronze badges
maoyangmaoyang
Jsp Jstl Core Jar File Size
If you want to use forEach you should add two libraries to WEB-INF/lib of your project:Impl:taglibs-standard-impl-1.2.5.jarSpec:taglibs-standard-spec-1.2.5.jar
Jstl Jar Files
swchswch47422 gold badges1111 silver badges2828 bronze badges
I imported 'taglibs-standard-impl-1.2.5.jar' I downloaded from http://tomcat.apache.org/download-taglibs.cgi and I encountered the same error.I tried importing 'jstl-1.2.jar' as Limited Atonement suggested before and it worked.So I compared those two jars:
- 'jstl-1.2.jar' contains 3 folders: 'javax', 'META-INF' and 'org'.
- 'taglibs-standard-impl-1.2.5.jar' contains only 2 folders: 'META-INF'and 'org'.
So I tried swch's suggestion. I removed jstl-1.2.jar and importing both 'taglibs-standard-spec-1.2.5.jar' and 'taglibs-standard-impl-1.2.5.jar'.
This solved the issue, because the 'spec' lib contains the 'javax' folder which contains the required classes.
ManawyddanManawyddan