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
- Author:
- Erik C. Thauvin
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.thauvin.erik.httpstatus.taglibs.XmlSupport
setDefault, setEscapeXmlMethods 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:
doTagin interfaceSimpleTag- Overrides:
doTagin 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
nullif none
-