您可以配置异常类型和JSP页面以在web.xml中进行处理,例如:
<error-page> <exception-type>UnhandledException</exception-type> <location>UnhandledException.jsp</location></error-page>
这里有一篇关于该主题的Oracle文章:
http://www.oracle.com/technology/sample_pre/tech/java/presnippet/servlets/HandlingServletExceptions/HandlingServletExceptions.html



