Class ReasonTag
java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
net.thauvin.erik.httpstatus.taglibs.XmlSupport
net.thauvin.erik.httpstatus.taglibs.ReasonTag
The
<hs:reason>
tag returns the Reason Phrase for the current (or specified) 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
-
ReasonTag
public ReasonTag()
-
-
Method Details
-
doTag
Writes the Reason Phrase for the current (or specified) HTTP Status Error Code.- Specified by:
doTag
in interfaceSimpleTag
- Overrides:
doTag
in classSimpleTagSupport
- Throws:
IOException
-
setCode
public void setCode(int statusCode) Sets the status code.- Parameters:
statusCode
- The status code
-