I'm new with jsp pages and just yesterday I opened a similar discussion. This could be a repeat or a very similar one and I'm so sorry whether this is the case, but are just few days that I'm developing jsp pages and I haven't understood how the enviroment, the folders, etc are "linked" together.
I got the following error on Apache Tomcat 7
HTTP Status 500 - 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
because I included this taglib
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Then, I created a folder "lib" into the "WEB-INF" one and I put there the file jstl-1-2.jar. A user suggested into another discussion reachable from here 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 to remove the standard.jar but I have never had a similar file.
Reading and surfing on the web, I read that in Tomcat 7 should be sufficient to put jstl-1-2.jar into the WEB-INF/lib folder like below but both with and without that file, nothing happen. The error doesen't change.
/var/lib/tomcat7/webapps/jsp_test/web/WEB-INF/lib/jstl-1-2.jar
This is the folders three:
- webapps - ROOT - index.html
- META-INF - context.xml
- jsp_test - nbproject
- src - conf - MANIFEST.MF
- java - mypack - Display.java
- web - ROOT - index.jsp
- WEB-INF - lib -jstl-1.2.jar
- web.xml
- beans.xml
I noticed also that there's another web.xml file also into the tomcat 7 folder:
/etc/tomcat7/web.xml
Do I have to change something in both the web.xml files?
Moreover, looking in the tomcat7-example folder there is a web.xml file where many libraries are written with a .tld extention:
/usr/share/tomcat7-examples/examples/WEB-INF/web.xml
I lost my way for this stupid thing, help me please! :)