1. Use the following code in the JSP page to join JSTL support
Copy Code code as follows:
<%@ taglib prefix= "C" uri= "Http://java.sun.com/jsp/jstl/core"%>
2. If the JSP page reports the following exception
org.apache.jasper.JasperException:java.lang.ClassNotFoundException:org.apache.jsp.Customer.addCustomerInfo_jsp
Org.apache.jasper.servlet.JspServletWrapper.getServlet (jspservletwrapper.java:177)
Org.apache.jasper.servlet.JspServletWrapper.service (jspservletwrapper.java:369)
Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:390)
Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:334)
Javax.servlet.http.HttpServlet.service (httpservlet.java:722)
Org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal ( opensessioninviewfilter.java:198)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)
Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:96)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)
Root cause
java.lang.ClassNotFoundException:org.apache.jsp.Customer.addCustomerInfo_jsp
Java.net.urlclassloader$1.run (urlclassloader.java:200)
Java.security.AccessController.doPrivileged (Native method)
Java.net.URLClassLoader.findClass (urlclassloader.java:188)
Org.apache.jasper.servlet.JasperLoader.loadClass (jasperloader.java:132)
Org.apache.jasper.servlet.JasperLoader.loadClass (jasperloader.java:63)
Org.apache.jasper.servlet.JspServletWrapper.getServlet (jspservletwrapper.java:172)
Org.apache.jasper.servlet.JspServletWrapper.service (jspservletwrapper.java:369)
Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:390)
Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:334)
Javax.servlet.http.HttpServlet.service (httpservlet.java:722)
Org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal ( opensessioninviewfilter.java:198)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)
Org.springfr
Amework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:96)
Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)
So there's probably no jstl jar package in your Tomcat's Lib directory, which is why Tomcat cannot parse Jstl
Solution: Add the Jstl jar bundle to the Tomcat's Lib directory.
Jstljar package Download Address: Download Jstl