Class MessageTag

All Implemented Interfaces:
JspTag, SimpleTag

public class MessageTag extends XmlSupport
Outputs the error message associated with the current HTTP status error. If no message is available, the tag prints the configured default value. XML escaping is applied when enabled.

This tag is typically used on JSP error pages to display the message supplied by the servlet container or application.

Since:
1.0.5
Author:
Erik C. Thauvin
  • Constructor Details

    • MessageTag

      public MessageTag()
  • Method Details

    • doTag

      public void doTag() throws IOException
      Writes the error message associated with the current request. If the request is not processing an error, the default value is used instead.
      Specified by:
      doTag in interface SimpleTag
      Overrides:
      doTag in class SimpleTagSupport
      Throws:
      IOException - If an error occurs while writing output