我需要一点帮助,在我的ICEfaces应用程序中创建一个捕获所有错误处理页面。我想展示一个用户友好的消息,以及一个异常堆栈跟踪。
我可以在web.xml中使用以下指令重定向到错误页面:
<error-page>
<error-code>500</error-code>
<location>/error.xhtml</location>
</error-page>但是,我不知道如何处理error.xhtml中的异常。它是存储在request、session还是其他地方?
我使用的是ICEfaces 1.8.0 (带有Facelets)和JSF1.2 (Sun )。谢谢!
发布于 2009-06-25 00:39:52
也许这对你有帮助:
get some stack trace info into a custom tomcat error 500 page
http://josephmarques.wordpress.com/2009/04/27/custom-jsf-exception-handling/
http://www.nabble.com/Exception-handling-in-JSF-td15850273.html
http://softwareengineeringsolutions.com/thoughts/frameworks/JSF.Techniques-Error.Handling.htm
https://stackoverflow.com/questions/1036479
复制相似问题