在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
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
浙公网安备 33010602011771号