struts-2.5.16下載、配置與運行

struts-2.5.16下載、配置與運行


下載

下載 
密碼:ll3v

官網

引入jar包

  • asm-5.2.jar
  • asm-commons-5.2.jar
  • commons-fileupload-1.3.3.jar
  • commons-io-2.5.jar
  • commons-lang-2.4.jar
  • commons-lang3-3.6.jar
  • commons-logging-1.1.3.jar
  • freemarker-2.3.26-incubating.jar
  • javassist-3.20.0-GA.jar
  • log4j-api-2.10.0.jar
  • ognl-3.1.15.jar
  • struts2-core-2.5.16.jar

webxml


 
<?xml version="1.0" encoding="UTF-8"?>

<web-app id="starter" 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.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>

-->

<!-- 以下路徑中沒有ng目錄 -->

<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter </filter-class>


</filter>

<filter-mapping>

<filter-name>struts2</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

</web-app>

struts.xml

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章