I have been trying to make the JSTL library work for days and every time I tried it Tomcat kept showing.
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 am using Tomcat 7.0.61 and I download the latest version of JSTL from Tomcat portal, I put three JSTL files in the WEB-INF/lib directory of my app
This is my directory structure
myapp
- WEB-INF
- lib
- taglibs-standard-impl-1.2.5.jar
- taglibs-standard-spec-1.2.5.jar
- taglibs-standard-jstlel-1.2.5.jar
- classes
index.jsp
and this is my index.jsp
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>JSP TEST on UBUNTU 12.10</title>
</head>
<body>
<%@ page import="java.io.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%!
public void getRequest(JspWriter out, HttpServletRequest request) throws IOException {
String req = request.getParameter("text");
out.println(req);
}
%>
<% getRequest(out, request); %>
</body>
</html>
I don't know which JSTL files I have to put in WEB-INF/lib or any configuration is missing in my app.
Please help