anyframe.web.struts.util
Class DefaultBaseExceptionHandler
java.lang.Object
org.apache.struts.action.ExceptionHandler
anyframe.web.struts.util.DefaultBaseExceptionHandler
public class DefaultBaseExceptionHandler
- extends org.apache.struts.action.ExceptionHandler
An ExceptionHandler is configured in the Struts
configuration file to handle a specific type of exception thrown by an
Action.execute method.
- Author:
- Byunghun Woo
| Fields inherited from class org.apache.struts.action.ExceptionHandler |
INCLUDE_PATH, SILENT_IF_COMMITTED |
|
Method Summary |
org.apache.struts.action.ActionForward |
execute(java.lang.Exception ex,
org.apache.struts.config.ExceptionConfig ae,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formInstance,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
logException(java.lang.String message,
java.lang.Exception e)
Logs the Exception using commons-logging. |
protected void |
storeException(javax.servlet.http.HttpServletRequest request,
java.lang.String[] messages,
org.apache.struts.action.ActionForward forward,
java.lang.String scope)
|
| Methods inherited from class org.apache.struts.action.ExceptionHandler |
determineIncludePath, handleCommittedResponse, logException, storeException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultBundle
protected java.lang.String defaultBundle
DefaultBaseExceptionHandler
public DefaultBaseExceptionHandler()
execute
public org.apache.struts.action.ActionForward execute(java.lang.Exception ex,
org.apache.struts.config.ExceptionConfig ae,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formInstance,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
- Overrides:
execute in class org.apache.struts.action.ExceptionHandler
- Throws:
javax.servlet.ServletException
storeException
protected void storeException(javax.servlet.http.HttpServletRequest request,
java.lang.String[] messages,
org.apache.struts.action.ActionForward forward,
java.lang.String scope)
logException
protected void logException(java.lang.String message,
java.lang.Exception e)
Logs the Exception using commons-logging.
- Parameters:
e - The Exception to log.- Since:
- Struts 1.2
Copyright © 2008-2009 Samsung SDS. All Rights Reserved.