Class CauseTag

All Implemented Interfaces:
JspTag, SimpleTag

public class CauseTag extends XmlSupport
The <hs:cause> tag returns the cause (if any) for the current HTTP Status Error Code.
Since:
1.0
  • Constructor Details

    • CauseTag

      public CauseTag()
  • Method Details

    • doTag

      public void doTag() throws IOException
      Prints the cause (if any) for the current HTTP Status Error Code.
      Specified by:
      doTag in interface SimpleTag
      Overrides:
      doTag in class SimpleTagSupport
      Throws:
      IOException - If an error occurs while writing the output
    • getCause

      public String getCause(Throwable cause)
      Returns the cause's localized message.
      Parameters:
      cause - The cause
      Returns:
      The cause or null if none