这个是你写的JSP文件里有错误,JSPER解析时出错.
解决方案 »
- 使用AOP如何在通知里面获得参数
- DES加密错误(java.security.NoSuchAlgorithmException: Cannot find any provider suppor)
- 【struts2】struts.xml配置的问题,可能对你来说很简单..
- 怎么向数据库表字段中,插入带有特殊字符的字符串
- 关于JBPM的问题
- javamail发邮件始终报javax.mail.NoSuchProviderException: smtp错误
- 50分求1个hibernate异常解决方法
- C# 利用HttpWebResponse下载 文件名编码如何取得
- 请教struts问题
- 关于树形结构表的Mybatis映射
- 有人熟悉URI类型吗
- Hibernate的HQL语句输写的问题
<%@ taglib uri="/struts-logic" prefix="logic" %>
<%@ taglib uri="/struts-bean" prefix="bean" %>
<%@ taglib uri="/struts-html" prefix="html" %>
<html:html locale="true">
<head>
<html:base/>
<title>
</title>
</head>
<body>
测试Struts
</body>
</html:html>这是我为了测试strusts是否配置成功的程序,这样测试是否可以
3: <%@ taglib uri="/struts-bean" prefix="bean" %>
4: <%@ taglib uri="/struts-html" prefix="html" %>
5: <html:html locale="true">
6: <head>
7: <html:base/>
8: <title>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause javax.servlet.ServletException: org.apache.struts.util.RequestUtils.retrieveUserLocale(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;)Ljava/util/Locale;
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.test_jsp._jspService(test_jsp.java:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.retrieveUserLocale(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;)Ljava/util/Locale;
org.apache.struts.taglib.html.HtmlTag.getCurrentLocale(HtmlTag.java:243)
org.apache.struts.taglib.html.HtmlTag.doStartTag(HtmlTag.java:140)
org.apache.jsp.test_jsp._jspx_meth_html_html_0(test_jsp.java:89)
org.apache.jsp.test_jsp._jspService(test_jsp.java:66)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)我把错误再贴一遍
3: <%@ taglib uri="/struts-bean" prefix="bean" %>
4: <%@ taglib uri="/struts-html" prefix="html" %> 看看你的web.xml文件配置是这样吗?<jsp-config> <taglib>
<taglib-uri>/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib> </jsp-config>看看路径是否正确