com.mentata.sg8
Class ErrorTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
com.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorTag
public ErrorTag()
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