Websphere Application Server 7下Apache Tiles 2.2的异常处理
来源:互联网 发布:收音机mac版 编辑:程序博客网 时间:2024/05/18 14:24
在Websphere Application Server 7下运行基于Apache Tiles 2.2的应用程序时, 在缺省配置下, 如果在一个子页中有异常发生, 相应的错误页只是显示在该子页中, 而其它子页则正常显示。 如果需要将整个页面重定向到错误页, 需要以下两个步骤:
1) 设置WAS应用服务器的custom propertycom.ibm.ws.webcontainer.dispatcherRethrowSError为true.该属性需要Fixpack 7.0.0.15, 见http://www-01.ibm.com/support/docview.wss?uid=swg1PM22919 和 http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=%2Fcom.ibm.websphere.express.doc%2Finfo%2Fexp%2Fae%2Frweb_custom_props.html.
2) 在Tiles的模板页中定义errorPage, 如下所示:
<%@ page errorPage="/jsp/general/error.jsp" %><%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %><tiles:insertAttribute name="header" /><tiles:insertAttribute name="body" /><tiles:insertAttribute name="footer" />
- Websphere Application Server 7下Apache Tiles 2.2的异常处理
- WebSphere Application Server ND V7中如何处理容器管理的数据库事务中会话 Bean 的连接异常?
- linux环境下安装WebSphere Application Server
- WebSphere Application Server 的 SSL 使用
- WebSphere Application Server的各个版本
- WebSphere Application Server的SSL配置
- WebSphere Application Server
- IBM WebSphere Application Server
- 在 WebSphere Application Server 中处理静态内容
- 在Websphere Application Server 6.1.0.15下发布cxf2.1的WebService
- 利用 ANT 实现自动化部署管理 WebSphere Application Server 5.x 下的应用
- IBM WebSphere Application Server下使用URL Rewrting进行Session Tracking的实现
- 如何实现WebSphere Application Server 6集群环境下的定时服务
- WebSphere 迁移: 将 Web 应用程序从 Apache Tomcat 迁移到 WebSphere Application Server Community Edition
- WebSphere Application Server Best Practices
- WebSphere Application Server V6 备忘录
- 5.0.2 WebSphere Application Server
- 怎样卸载 WebSphere Application server
- 编译安装 Mesa (OpenGL)
- 多个编辑框,自作数字键盘,确认当前是那个编辑框解决方法
- nginx python spawn-fcgi Flup webpy搭建python的web环境
- 面对算法问题怎么办??
- nginx多域名设置
- Websphere Application Server 7下Apache Tiles 2.2的异常处理
- 重置Portlet Action-scoped Request属性
- fedora 17 添加yum更新源
- 黑马程序员——java高新技术1学习笔记整理
- 黑马程序员——java高新技术2学习笔记整理
- IE浏览器下返回执行错误的Javascript代码所在的问题(js有用)
- 一些公式
- 答来信 :读书和实践哪个更重要?
- Build Zynq linux kernal time