package mu.strutsutils;
import javax.servlet.http.*;
import javax.servlet.ServletException;
import org.apache.commons.logging.*;
import org.apache.struts.action.*;
import org.apache.struts.config.ExceptionConfig;
public class StackTraceExceptionHandler extends ExceptionHandler {
private static Log log = LogFactory.getLog(StackTraceExceptionHandler.class);
public ActionForward execute(Exception ex, ExceptionConfig config,
ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws ServletException {
log.error("Application Error Detected and Forwarded:", ex);
return super.execute(ex, config, mapping, form, request, response);
}
}
|