BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.

com.bea.wlw.netui.tags.html
Class Exceptions

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.bea.wlw.netui.tags.html.Exceptions
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class Exceptions
extends javax.servlet.jsp.tagext.TagSupport

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

Attribute Descriptions
AttributeRequiredRuntime Expression EvaluationData Bindable
showMessageNoNoNo
Determines whether or not the message of the exception should be shown
showStackTraceNoNoNo
Returns whether or not the stack trace is being shown

See Also:
Serialized Form
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" />

Code Sample

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui/exceptions/
Beadoc.see:
<netui:exceptions> Tag Sample
Beadoc.tagdescription:
This tag renders exception messages and stack traces inline on the JSP page.

Field Summary
protected  boolean showMessage
          Determines whether or not the message of the exception should be shown.
protected  boolean showStackTrace
          Determines whether or not the stack trace of the exception should be shown.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
Exceptions()
           
 
Method Summary
 int doStartTag()
          Render the exception text based on the display attributes.
 boolean getShowMessage()
          Returns whether or not the exception message is being shown.
 boolean getShowStackTrace()
          Returns whether or not the stack trace is being shown.
protected  void localRelease()
          Release any acquired resources.
 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 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
 

Field Detail

showMessage

protected boolean showMessage
Determines whether or not the message of the exception should be shown. Defaults to true.


showStackTrace

protected boolean showStackTrace
Determines whether or not the stack trace of the exception should be shown. Defaults to false.

Constructor Detail

Exceptions

public Exceptions()
Method Detail

getShowMessage

public boolean getShowMessage()
Returns whether or not the exception message is being shown.

Returns:
the showMessage state

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
Beadoc.attributedescription:
Boolean. Determines whether or not the exception message is shown. Defaults to true
Beadoc.attributesyntaxvalue:
boolean_showMessage
Beadoc.databindable:
false

getShowStackTrace

public boolean getShowStackTrace()
Returns whether or not the stack trace is being shown.

Returns:
the showStackTrace state

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
Beadoc.attributedescription:
Boolean. Determines whether or not the stack trace is shown. Defaults to false
Beadoc.attributesyntaxvalue:
boolean_showStackTrace
Beadoc.databindable:
false

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Render the exception text based on the display attributes.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

localRelease

protected void localRelease()
Release any acquired resources.


BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.