public void handleException() {
try {
} catch (Exception e) {
}
}
<web-app>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/error.jsp</location>
</error-page>
</web-app>
public class ErrorAction {
public String execute() {
HttpServletRequest request = WebContext.request();
Object errorMsg = request.getAttribute("javax.servlet.error.exception");
return "error.jsp";
}
}