这个是你写的JSP文件里有错误,JSPER解析时出错.

解决方案 »

  1.   

    <%@page contentType="text/html;charset=gb2312"%>
    <%@ 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是否配置成功的程序,这样测试是否可以
      

  2.   

    exception org.apache.jasper.JasperException: Exception in JSP: /test.jsp:52: <%@ taglib uri="/struts-logic" prefix="logic" %>
    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.   

    2:   <%@   taglib   uri="/struts-logic"   prefix="logic"   %> 
    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>看看路径是否正确
      

  4.   

    我加了<jsp-config></jsp-config>也还还是报错,是不是我CLASSPATH里面要加什么struts.jar的路径吗?
      

  5.   

    楼上的,少一个<html:base/>标签阿
      

  6.   

    没有人再提供一些建议吗??不好意思我是新手,碰到问题也处于无奈,身边没有可以问的人...是不是CLASSPATH 里要加struts.jar的路径?
      

  7.   

    不用呀,你有没有导入struts.jar这个包啊?
      

  8.   

    导入包?怎么导入方法?我肯定哪里设置有问题了,我现在学的是struts1.几的,不是2.0的