com.acsinet_solutions.cetia4.tags
Class WriteExceptionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.acsinet_solutions.cetia4.tags.WriteExceptionTag
All Implemented Interfaces:
AttributeKeys, ControllerConstants, java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public final class WriteExceptionTag
extends javax.servlet.jsp.tagext.TagSupport
implements ControllerConstants

Tag that writes down an exception. it only works if context init param DISPLAY_SYSTEM_EXCEPTIONS_PARAM is set. The exception is obtained from _SYSTEM_EXCEPTION key. The exception is printed using the HTMLExceptionDataWriter class.

Author:
Santiago Arriaga
See Also:
Configuration.DISPLAY_SYSTEM_EXCEPTIONS_PARAM, AttributeKeys._SYSTEM_EXCEPTION_KEY, HTMLExceptionDataWriter, Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface com.acsinet_solutions.cetia4.controller.ControllerConstants
_METHOD_PARAM, _PAGE_PARAM, _ROOT_PARAM, DEFAULT_VIEW, ERROR_URL, ERROR_VIEW, LOAD_CANCEL, LOAD_CURRENT, LOAD_DEFAULT, LOAD_ERROR, LOAD_PREVIOUS
 
Fields inherited from interface com.acsinet_solutions.cetia4.controller.AttributeKeys
_BUNDLE_KEY, _CONFIGURATION_KEY, _DEFAULT_CONTROLLER_KEY, _FORM_ACTION_KEY, _FORM_ATTRIBUTE_KEY, _LOCALE_KEY, _MESSAGE_KEY, _NAVIGATION_FLOW_KEY, _PORTAL_PATH_KEY, _RENDER_PARAMETERS_KEY, _SERVICE_LOCATOR_KEY, _SESSION_KEY, _SYSTEM_EXCEPTION_KEY, _VALIDATION_EXCEPTION_KEY
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
WriteExceptionTag()
           
 
Method Summary
 int doStartTag()
          Write down the stack trace of the system exception to the page.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteExceptionTag

public WriteExceptionTag()
Method Detail

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Write down the stack trace of the system exception to the page.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException