Macros

给我一支烟!请所有烦恼都能过往如云烟!

导航

在Tapestry3.0中打印详细报错消息

1.下载包http://jroller.com/resources/letiemble/tapestry-contrib-exception.jar 并添加到工程中.
2.在你工程的application文件中加入以下代码:
    <library id="exception" specification-path="/contrib/tapestry/exception/Exception.library"/>
3.在引擎类里重载方法getExceptionPageName
    protected String getExceptionPageName() {
      return "exception:Exception";
      }
原文出处:http://jroller.com/page/letiemble

posted on 2005-11-22 16:55  Macros  阅读(174)  评论(0)    收藏  举报