struts2环境的搭建
第一步:将需要的jar包导入web-inf下面的lib目录下
struts2-core-xxx.jarxwork-core-xxx.jarcommon-logging-xxx.jarcommon-io-xxx.jarcommon--fileupload-xxx.jarjavassist-xxx.jar
<filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern></filter-mapping>
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN""http://struts.apache.org/dtds/struts-2.0.dtd"><struts></struts>