seasun  
在不断模仿、思考、总结中一步一步进步!
公告
  •     我的blog中的部分资源是来自于网络上,如果您认为侵犯了您的权利,请及时联系我我会尽快删除!E-MAIL:shiwenfeng@aliyun.com和QQ:281340916,欢迎交流。

日历
<2009年10月>
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

导航

常用链接

随笔分类

good blog author

积分与排名

  • 积分 - 80681
  • 排名 - 698

最新评论

阅读排行榜

 

<?xml version="1.0" encoding="GBK"?>
<!-- 配置Web应用配置文件的根元素,并指定配置文件的Schema信息 -->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
 <!-- 定义ActionContextCleanUp过滤器 -->
 <filter>
  <filter-name>struts-cleanup</filter-name>
  <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
 </filter>
 <!-- 定义SiteMesh的核心过滤器 -->
 <filter>
  <filter-name>sitemesh</filter-name>
  <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
 </filter>
 <!-- 定义Struts 2的核心过滤器 -->
 <filter>
  <filter-name>struts</filter-name>
  <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
 </filter>

 <!-- 定义过滤器链 -->
 <!-- 排在第一位的过滤器是:ActionContextCleanUp过滤器 -->
 <filter-mapping>
  <filter-name>struts-cleanup</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
 <!-- 排在第二位的过滤器是:SiteMesh的核心过滤器 -->
 <filter-mapping>
  <filter-name>sitemesh</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
 <!-- 排在第三位的过滤器是:FilterDispatcher过滤器 -->
 <filter-mapping>
  <filter-name>struts</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>

 <!-- 定义一个Listener,该Listener在应用启动时创建Spring容器 -->
 <listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener
  </listener-class>
 </listener>
 <!-- 定义一个Listener,该Listener在应用启动时加载MyFaces的Context -->
 <listener>
  <listener-class>org.apache.myfaces.webapp.StartupServletContextListener
  </listener-class>
 </listener>
 <!-- 配置JSF的FacesServlet,让其在应用启动时加载 -->
 <servlet>
  <servlet-name>faces</servlet-name>
  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
 </servlet>
 <!-- 让FacesServlet拦截所有以*.action结尾的请求 -->
 <servlet-mapping>
  <servlet-name>faces</servlet-name>
  <url-pattern>*.action</url-pattern>
 </servlet-mapping>
</web-app>

posted on 2009-10-28 17:11 shiwf 阅读(1373) 评论(0)  编辑  收藏 所属分类: 1.08 sitemesh

只有注册用户登录后才能发表评论。


网站导航:
 
 
Copyright © shiwf Powered by: 博客园 模板提供:沪江博客