Class ReasonTag

All Implemented Interfaces:
JspTag, SimpleTag

public class ReasonTag extends XmlSupport
The <hs:reason> tag returns the Reason Phrase for the current (or specified) HTTP Status Error Code.
Since:
1.0
  • Constructor Details

    • ReasonTag

      public ReasonTag()
  • Method Details

    • doTag

      public void doTag() throws IOException
      Writes the Reason Phrase for the current (or specified) HTTP Status Error Code.
      Specified by:
      doTag in interface SimpleTag
      Overrides:
      doTag in class SimpleTagSupport
      Throws:
      IOException
    • setCode

      public void setCode(int statusCode)
      Sets the status code.
      Parameters:
      statusCode - The status code