Exceptions Class
- public class Exceptions
extends 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 |
Attribute | Required | Runtime Expression Evaluation | Data Bindable |
showMessage | No | No | No |
Determines whether or not the message of the exception should be shown |
showStackTrace | No | No | No |
Returns whether or not the stack trace is being shown |
Related Topics
<netui:exceptions> Tag Sample
-
Hierarchy
-
Object
TagSupport
Exceptions
-
All Implemented Interfaces
-
IterationTag
, Serializable
, Tag
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.
|
public int |
-
doStartTag ()
- Render the exception text based on the display attributes.
|
public boolean |
-
getShowMessage ()
- Returns whether or not the exception message is being shown.
|
public boolean |
-
getShowStackTrace ()
- Returns whether or not the stack trace is being shown.
|
protected void |
-
localRelease ()
- Release any acquired resources.
|
public void |
-
setShowMessage (boolean showMessage)
- Set whether or not the exception message is being shown.
|
public void |
-
setShowStackTrace (boolean showStackTrace)
- Set whether or not the stack trace is being shown.
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
Exceptions
public Exceptions()
doStartTag() Method
public int doStartTag()
throws JspException
Render the exception text based on the display attributes.
-
Overrides
-
TagSupport.doStartTag()
Exceptions
-
JspException
- if a JSP exception has occurred
getShowMessage() Method
public boolean getShowMessage()
Returns whether or not the exception message is being shown.
Returns
- the showMessage state
getShowStackTrace() Method
public boolean getShowStackTrace()
Returns whether or not the stack trace is being shown.
Returns
- the showStackTrace state
localRelease() Method
protected void localRelease()
Release any acquired resources.
setShowMessage(boolean) Method
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(boolean) Method
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