org.dbforms.taglib
Class HasErrorTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.dbforms.taglib.HasErrorTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public class HasErrorTag
extends javax.servlet.jsp.tagext.BodyTagSupport
implements javax.servlet.jsp.tagext.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
HasErrorTag()
           
 
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

HasErrorTag

public HasErrorTag()
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 javax.servlet.jsp.tagext.TryCatchFinally
Parameters:
t - DOCUMENT ME!
Throws:
Throwable - DOCUMENT ME!

doFinally

public void doFinally()
DOCUMENT ME!

Specified by:
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally

doStartTag

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

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
DOCUMENT ME!
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred


Copyright © 2002-2006 DbForms. All Rights Reserved.