ITeye博客

struts1异常处理

suzuki · 2011-02-28 17:42 · 编程语言 · Java · Struts · XML · SSH · Web · Markdown

struts-config.xml配置全局异常 <global-exceptions>
 <exception handler="com.gmcc.boss.common.web.WebExceptionHandler" key="error.common.exception" scope="request" type="java.lang.Exception"/>
  </global-exceptions>

 

写一个类

 extends ExceptionHandler 重写execute方法

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。