Class CauseTag
java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
net.thauvin.erik.httpstatus.taglibs.XmlSupport
net.thauvin.erik.httpstatus.taglibs.CauseTag
The
<hs:cause>
tag returns the cause (if any) for the current HTTP Status Error Code.- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.thauvin.erik.httpstatus.taglibs.XmlSupport
setDefault, setEscapeXml
Methods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Constructor Details
-
CauseTag
public CauseTag()
-
-
Method Details
-
doTag
Prints the cause (if any) for the current HTTP Status Error Code.- Specified by:
doTag
in interfaceSimpleTag
- Overrides:
doTag
in classSimpleTagSupport
- Throws:
IOException
- If an error occurs while writing the output
-
getCause
Returns the cause's localized message.- Parameters:
cause
- The cause- Returns:
- The cause or
null
if none
-