//
assert context.getRequest() instanceof HttpServletRequest : "don't support ServletRequest currently.";
assert context.getResponse() instanceof HttpServletResponse : "don't support ServletResponse currently.";
HttpServletRequest request = ( HttpServletRequest ) context.getRequest();
HttpServletResponse response = ( HttpServletResponse ) context.getResponse();
ExceptionHandler handler = ( ExceptionHandler ) RequestUtils.applicationInstance( handlerClassName );
Exception ex = throwable instanceof Exception ? ( Exception ) throwable : new Exception( throwable );
ActionForward result = handler.execute( ex, exceptionConfig, actionMapping, form, request, response );
//
// See if the path is really relative to the webapp root, not relative to the module. Struts doesn't by default
// support paths that are webapp-relative.
//