运行:http://localhost:8080/end/login.jsp
出现下面错误:
type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.apache.jasper.JasperException: An exception occurred processing JSP page /login.jsp at line 1411:  <meta http-equiv="description" content="This is my page">
12:  </head>
13:  <body>
14:  <s:form action="/Login.action" name="login">
15:  <s:textfield name="user.name" label="用户名" value="root"></s:textfield>
16: 
17:  <s:password  name="user.password" label="密  码" value="123"></s:password>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)root causeThe Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]
org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:52)
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49)
org.apache.jsp.login_jsp._jspx_meth_s_005fform_005f0(login_jsp.java:110)
org.apache.jsp.login_jsp._jspService(login_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs.

解决方案 »

  1.   

    看看环境吧..看你的IDE的默认环境和你项目的环境是否一样..如果不一样的话重新编译项目试试
      

  2.   

    不一样的,MYECLIPSE版本书上是6.0,我的是8.0。
      

  3.   

    1、看看有没有把标签库包含到页面。
    2、看看web.xml里的filterDispacher有没有配置正确
    3、看看有没有把struts2的一些jar包导入进来
      

  4.   

    可能是web.xml或是jar包的问题
      

  5.   

    觉得可能是以下几个问题之一:
       (1)确实struts的jar包
       (2)在页面的开始部分,你引入了struts的引用么?
        (3)看看web.xml文件!
      

  6.   

    请问最后这个问题解决了不?  我尝试在myeclipse8.0中手动加入struts2,然后用ide生成spring,hibernate支持,最后部署运行都失败了,不知道为什么,真是奇怪啊,求myeclipse8.0中配置ssh的教程和文章!