<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" 
 xmlns="http://java.sun.com/xml/ns/j2ee" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  
  <filter>
  <filter-name>struts2</filter-name>
  <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
 </filter>
 <filter-mapping>
  <filter-name>struts2</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
  
</web-app>org.apache 这两个都说 the word not correct spell我已经把struts2-core-2.1.6.jar这个包加到lib里面了
到底是什么回事
各位帮帮忙

解决方案 »

  1.   

    你在学习struts2吗?  这个看是不是你的环境的问题 我之前也是这样的。 别人写好的案例在我的电脑上就是不能运行。
      

  2.   

    把struts2的几个包副知道lib目录下就没事了
      

  3.   

    把struts2-core-2.1.6.jar这个包换了  用Struts 2.0.14的包
      

  4.   

    <filter>
    <filter-name>struts-cleanup</filter-name>
    <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
    </filter><filter-mapping>
    <filter-name>struts-cleanup</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    在web.xml配置一下,位置在struts2之前
      

  5.   

    struts-core-2.14.jar
    commons-loging.jar
    xwork.jar
    ognl.jar
    fraemworker.jar
      

  6.   

    贴出错误看看
    另外web.xml
    用这个试试org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
    struts2.1.推荐用这个。