org.apache.beehive.netui.tags.html
Class Exceptions

Object
  extended by SimpleTagSupport
      extended by AbstractSimpleTag
          extended by Exceptions
All Implemented Interfaces:
JspTag, SimpleTag, INetuiTag

public class Exceptions
extends AbstractSimpleTag

Renders formatted exception data, as found in the Request with the key: org.apache.struts.action.Action.EXCEPTION_KEY. Exceptions ignores its body content.

Example
In this sample, the <netui:exceptions> tag will output the exception title and message, but not the stacktraces.
<netui:exceptions showMessage="true" showStackTrace="false" />

Constructor Summary
Exceptions()
           
 
Method Summary
 void doTag()
          Render the exception text based on the display attributes.
 String getTagName()
          Return the name of the Tag.
 void setShowDevModeStackTrace(boolean showStackTrace)
          Set whether or not the stack trace is being shown.
 void setShowMessage(boolean showMessage)
          Set whether or not the exception message is being shown.
 void setShowStackTrace(boolean showStackTrace)
          Set whether or not the stack trace is being shown.
 
Methods inherited from class AbstractSimpleTag
getBufferBody, getHtmlTag, getIdForTagId, getInlineError, getPageContext, getScriptReporter, getUserLocale, hasErrors, registerTagError, registerTagError, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write
 
Methods inherited from class SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exceptions

public Exceptions()
Method Detail

getTagName

public String getTagName()
Return the name of the Tag.

Specified by:
getTagName in interface INetuiTag
Specified by:
getTagName in class AbstractSimpleTag
Returns:
the name of the tag.

setShowMessage

public void setShowMessage(boolean showMessage)
Set whether or not the exception message is being shown.

Parameters:
showMessage - - true or false depending on the setting desired

setShowStackTrace

public void setShowStackTrace(boolean showStackTrace)
Set whether or not the stack trace is being shown.

Parameters:
showStackTrace - - true or false depending on the setting desired

setShowDevModeStackTrace

public void setShowDevModeStackTrace(boolean showStackTrace)
Set whether or not the stack trace is being shown.

Parameters:
showStackTrace - - true or false depending on the setting desired

doTag

public void doTag()
           throws JspException
Render the exception text based on the display attributes.

Specified by:
doTag in interface SimpleTag
Overrides:
doTag in class SimpleTagSupport
Throws:
JspException - if a JSP exception has occurred