BlogJava 聯系 聚合 管理  

          Blog Stats

          隨筆檔案(17)

          文章檔案(1)


          GaoWei

          <?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">

              <!-- 加載spring配置 -->
              <context-param>
                  <param-name>contextConfigLocation</param-name>
                  <param-value>classpath:META-INF/spring/spring*.xml</param-value>
              </context-param>

              <listener>
                  <listener-class>
                      org.springframework.web.context.ContextLoaderListener
                  </listener-class>
              </listener>

              <!-- hibernate session配置 -->
              <filter>
                  <filter-name>OpenSessionInViewFilter</filter-name>
                  <filter-class>
                      org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
                  </filter-class>
              </filter>
              <filter-mapping>
                  <filter-name>OpenSessionInViewFilter</filter-name>
                  <url-pattern>*.ftl</url-pattern>
              </filter-mapping>
              <filter-mapping>
                  <filter-name>OpenSessionInViewFilter</filter-name>
                  <url-pattern>*.jsp</url-pattern>
              </filter-mapping>
              <filter-mapping>
                  <filter-name>OpenSessionInViewFilter</filter-name>
                  <url-pattern>*.html</url-pattern>
              </filter-mapping>

              <!-- struts2配置 -->
              <filter>
                  <filter-name>struts</filter-name>
                  <filter-class>
                      org.apache.struts2.dispatcher.FilterDispatcher
                  </filter-class>
                  <init-param>
                      <param-name>actionPackages</param-name>
                      <param-value>
                          cn.ynzc.product.web.statistics.action,
                          cn.ynzc.product.web.system.action,
                          cn.ynzc.product.web.list.action,
                          cn.ynzc.product.web.sellFactory.action,
                          cn.ynzc.product.web.action
                      </param-value>
                  </init-param>
              </filter>


              <filter>
                  <filter-name>struts-cleanup</filter-name>
                  <filter-class>
                      org.apache.struts2.dispatcher.ActionContextCleanUp
                  </filter-class>
              </filter>
              <filter>
                  <filter-name>sitemesh</filter-name>
                  <filter-class>
                      org.apache.struts2.sitemesh.FreeMarkerPageFilter
                  </filter-class>
              </filter>

              <filter-mapping>
                  <filter-name>struts-cleanup</filter-name>
                  <url-pattern>/*</url-pattern>
              </filter-mapping>
              <filter-mapping>
                  <filter-name>sitemesh</filter-name>
                  <url-pattern>/*</url-pattern>
              </filter-mapping>
              <filter-mapping>
                  <filter-name>struts</filter-name>
                  <url-pattern>/*</url-pattern>
              </filter-mapping>


              <!-- struts2 使用jsp標簽 -->
              <servlet>
                  <servlet-name>JspSupportServlet</servlet-name>
                  <servlet-class>
                      org.apache.struts2.views.JspSupportServlet
                  </servlet-class>
                  <load-on-startup>1</load-on-startup>
              </servlet>



              <welcome-file-list>
                  <welcome-file>index.jsp</welcome-file>
                  <welcome-file>login.html</welcome-file>
              </welcome-file-list>
              <!-- Struts Tag Library Descriptors -->

          </web-app>


          posted on 2007-06-12 22:05 gggg874 閱讀(324) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 漯河市| 墨竹工卡县| 沂源县| 昆明市| 武宣县| 亳州市| 南充市| 虎林市| 永新县| 绿春县| 兰州市| 四平市| 信丰县| 商河县| 东乡县| 绥棱县| 长宁区| 锦州市| 孟村| 石林| 双牌县| 凤阳县| 社会| 青海省| 珠海市| 兴安盟| 新晃| 祁东县| 东乌珠穆沁旗| 枣阳市| 阿克陶县| 鹤峰县| 雷波县| 咸宁市| 灵台县| 景谷| 邮箱| 辽中县| 颍上县| 潜山县| 临湘市|