The cause:
Version incompatibility between JSP, Servlet and JSTL.
Solution:
You will have to open the web.xml file in WEB-INF folder and check if the DTD version is correct.
Example:
<web-app xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" c="http://java.sun.com/jsp/jstl/core" schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
</web-app>
The version above is 2.5 so you have to change to 2.4 or 2.3.
Matching versions are listed below:
- JSP 1.2 , Servlet 2.3 , JSTL 1.0;
- JSP 2.0 , Servlet 2.4 , JSTL 1.1;
Using the correct Servlet version the error won't be displayed anymore.
Solved!
No comments:
Post a Comment