|
復制代碼 代碼如下:
<%@ 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的異常分析,轉載需保留來源!
鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。