com.mentata.sg8
Class ExcuseTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.SimpleTagSupport
      extended bycom.mentata.sg8.ExcuseTag
All Implemented Interfaces:
JspTag, SimpleTag

public class ExcuseTag
extends SimpleTagSupport

A tag handler that generates explanatory messages for thrown exceptions. This tag handler is used to produce error messages. It has a single action attribute for the exception thrown. The gateway error page uses the tag to add the messages at the top of the output HTML.

Since:
0.7
Author:
Jon Roberts

Constructor Summary
ExcuseTag()
           
 
Method Summary
 void doTag()
          Writes an explanation of the failure derived from the configured exception.
 void setException(Throwable exception)
          Defines an exception parameter for the tag context.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcuseTag

public ExcuseTag()
Method Detail

setException

public void setException(Throwable exception)
Defines an exception parameter for the tag context.

Parameters:
exception - an exception to explain

doTag

public void doTag()
           throws IOException
Writes an explanation of the failure derived from the configured exception.

Throws:
IOException - if there was an error writing to the output stream