org.loom.tags.exception
Class ExceptionTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.loom.tags.exception.ExceptionTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag
@Tag(bodyContent=EMPTY)
public class ExceptionTag
- extends javax.servlet.jsp.tagext.SimpleTagSupport
Display an http error or exception to the user.
This tag delegates to ErrorRenderer.
|
Method Summary |
void |
doTag()
|
void |
setLogRequest(boolean logRequest)
true to log the request contents (headers, parameters, attributes)
when logging any exception, default false |
void |
setMessageTag(java.lang.String messageTag)
The HTML tag used to render the error message (exception message or http error message),
empty or null to skip error message, default h1 |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionTag
public ExceptionTag()
doTag
public void doTag()
throws javax.servlet.jsp.JspException,
java.io.IOException
- Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag- Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
- Throws:
javax.servlet.jsp.JspException
java.io.IOException
setLogRequest
@Attribute
public void setLogRequest(boolean logRequest)
- true to log the request contents (headers, parameters, attributes)
when logging any exception, default false
setMessageTag
@Attribute
public void setMessageTag(java.lang.String messageTag)
- The HTML tag used to render the error message (exception message or http error message),
empty or null to skip error message, default h1