struts2 config

struts2 config
1.jar包
            commons-logging-1.0.4.jar
            freemarker-2.3.8.jar
            ognl-2.6.11.jar
            xwork-2.0.4.jar
            struts-core-1.3.5.jar
2.web.xml加入filter
            <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>
  3.src下添加struts.xml
            <!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
        "http://struts.apache.org/dtds/struts-2.0.dtd">
        <struts>   </struts>       

你可能感兴趣的:(struts2 config)