Security Websphere异常处理
从安全角度来看,用Websphere处理应用程序错误的最佳解决方案是什么 我一直在考虑创建一个类,该类在每次生成应用程序错误时调用,记录错误并向用户显示一般错误消息 在PHP中,这可以使用set_exception_handler()函数实现。在web.xml中是否有类似的websphere配置 我在互联网上发现了这样的代码:Security Websphere异常处理,security,jsp,error-handling,websphere,web.xml,Security,Jsp,Error Handling,Websphere,Web.xml,从安全角度来看,用Websphere处理应用程序错误的最佳解决方案是什么 我一直在考虑创建一个类,该类在每次生成应用程序错误时调用,记录错误并向用户显示一般错误消息 在PHP中,这可以使用set_exception_handler()函数实现。在web.xml中是否有类似的websphere配置 我在互联网上发现了这样的代码: <error-page> <error-code>500</error-code> <location>/serv
<error-page>
<error-code>500</error-code>
<location>/servlet/ExceptionHandlerServlet</location>
</error-page>
500
/servlet/ExceptionHandlerServlet
但这只适用于“500”个HTTP错误代码。我真的想要一种能抓住一切的通用产品。类似于实现某个接口的类,该接口可以访问有关错误的所有信息
谢谢您的时间。这也可以在web.xml中找到:
<error-page>
<exception-type>UnhandledException</exception-type>
<location>UnhandledException.jsp</location>
</error-page>
未处理异常
UnhandledException.jsp
在其他地方,这是用于。JEE5教程也可能有助于设置此设置,特别是关于和的部分
本质上,所有的异常都应该被包装起来,并且映射到的JSP应该在页面的最顶端设置