org.dbforms.taglib
Class IsErrorTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.dbforms.taglib.IsErrorTag
All Implemented Interfaces:
BodyTag, IterationTag, Serializable, Tag, TryCatchFinally

public class IsErrorTag
extends BodyTagSupport
implements TryCatchFinally

Custom tag that evaluates its body if an Error has occured.

Based on ErrorTag and IsWebEvent tag, allows for conditional coding if an error event occured.

Author:
Neal Katz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
IsErrorTag()
           
 
Method Summary
 void doCatch(Throwable t)
          DOCUMENT ME!
 void doFinally()
          DOCUMENT ME!
 int doStartTag()
          Render the specified error messages if there are any.
 String getName()
          DOCUMENT ME!
 String getValue()
          DOCUMENT ME!
 void setName(String name)
          DOCUMENT ME!
 void setValue(String string)
          DOCUMENT ME!
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

IsErrorTag

public IsErrorTag()
Method Detail

setName

public void setName(String name)
DOCUMENT ME!

Parameters:
name - DOCUMENT ME!

getName

public String getName()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setValue

public void setValue(String string)
DOCUMENT ME!

Parameters:
string -

getValue

public String getValue()
DOCUMENT ME!

Returns:

doCatch

public void doCatch(Throwable t)
             throws Throwable
DOCUMENT ME!

Specified by:
doCatch in interface TryCatchFinally
Parameters:
t - DOCUMENT ME!
Throws:
Throwable - DOCUMENT ME!

doFinally

public void doFinally()
DOCUMENT ME!

Specified by:
doFinally in interface TryCatchFinally

doStartTag

public int doStartTag()
               throws JspException
Render the specified error messages if there are any.

Specified by:
doStartTag in interface Tag
Returns:
DOCUMENT ME!
Throws:
JspException - if a JSP exception has occurred


Copyright © 2002-2004 DbForms. All Rights Reserved.