Anyframe Web

anyframe.web.struts.util
Class DefaultBaseExceptionHandler

java.lang.Object
  extended by org.apache.struts.action.ExceptionHandler
      extended by 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

Field Summary
protected  java.lang.String defaultBundle
           
 
Fields inherited from class org.apache.struts.action.ExceptionHandler
INCLUDE_PATH, SILENT_IF_COMMITTED
 
Constructor Summary
DefaultBaseExceptionHandler()
           
 
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
 

Field Detail

defaultBundle

protected java.lang.String defaultBundle
Constructor Detail

DefaultBaseExceptionHandler

public DefaultBaseExceptionHandler()
Method Detail

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

Anyframe Web

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.