用戶工具

網站工具


eclipse_struts2

差異處

這裏顯示二個版本的差異處。

連向這個比對檢視

eclipse_struts2 [2011/04/01 09:57]
bestlong
eclipse_struts2 [2011/04/01 11:06] (目前版本)
bestlong
行 7: 行 7:
 然後修改 WebContent/WEB-INF/web.xml 增加: 然後修改 WebContent/WEB-INF/web.xml 增加:
  
 +  <?xml version="1.0" encoding="UTF-8"?>
 +  <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 +           xmlns="http://java.sun.com/xml/ns/javaee"
 +           xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
 +           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
 +    <display-name>struts2211demo</display-name>
     <filter>     <filter>
-        <filter-name>struts2</filter-name> +      <filter-name>struts2</filter-name> 
-        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>+      <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
     </filter>     </filter>
-     
     <filter-mapping>     <filter-mapping>
-        <filter-name>struts2</filter-name> +      <filter-name>struts2</filter-name> 
-        <url-pattern>/*</url-pattern>+      <url-pattern>/*</url-pattern>
     </filter-mapping>     </filter-mapping>
 +    <welcome-file-list>
 +      <welcome-file>index.jsp</welcome-file>
 +    </welcome-file-list>
 +  </web-app>
  
 最後在 src/ 增加 struts.xml 設定就可以開始探索了。 最後在 src/ 增加 struts.xml 設定就可以開始探索了。
- 
- 
  
eclipse_struts2.txt · 上一次變更: 2011/04/01 11:06 由 bestlong