|
复制代码 代码如下:
<%@ taglib prefix="c" uri="http://Java.sun.com/jsp/jstl/core" %>
2.如果jsp页面报如下异常
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)
那么很有可能是你的Tomcat的lib目录中没有jstl的jar包,所以才导致tomcat无法解析jstl
解决方案:在tomcat的lib目录中添加jstl的jar包即可。
jstljar包下载地址:下载jstl
jsp技术:关于jsp页面使用jstl的异常分析,转载需保留来源!
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。