com.mentata.sg8
Class ErrorTag

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

public class ErrorTag
extends SimpleTagSupport

A tag handler for throwing an exception from within JSP. This tag handler is used to throw an exception within JSP content. It has a single action attribute for the error message to pass on. All pages in the gateway that expect beans in the session use the tag to invoke an error state if the requisite beans are not present.

Since:
0.7
Author:
Jon Roberts

Constructor Summary
ErrorTag()
           
 
Method Summary
 void doTag()
          Propogates an exception with the configured message.
 void setMessage(String message)
          Defines an error message 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

ErrorTag

public ErrorTag()
Method Detail

setMessage

public void setMessage(String message)
Defines an error message parameter for the tag context.

Parameters:
message - a description of the failure

doTag

public void doTag()
           throws IOException
Propogates an exception with the configured message.

Throws:
IOException - always