com.interface21.web.servlet.tags
Class BindTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.interface21.web.servlet.tags.RequestContextAwareTag
              |
              +--com.interface21.web.servlet.tags.BindTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class BindTag
extends RequestContextAwareTag

Bind tag, supporting evaluation of binding errors for a certain bean or bean property. Exports a "status" variable of type BindStatus.

Discussed in Chapter 12 of Expert One-On-One J2EE Design and Development by Rod Johnson.

Author:
Rod Johnson, Juergen Hoeller
See Also:
Serialized Form

Field Summary
static java.lang.String STATUS_VARIABLE_NAME
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
BindTag()
           
 
Method Summary
 int doStartTag()
          Create and set the current RequestContext.
 void setPath(java.lang.String path)
          Set the path that this tag should apply.
 
Methods inherited from class com.interface21.web.servlet.tags.RequestContextAwareTag
getRequestContext, isHtmlEscape, setHtmlEscape
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_VARIABLE_NAME

public static final java.lang.String STATUS_VARIABLE_NAME
Constructor Detail

BindTag

public BindTag()
Method Detail

setPath

public void setPath(java.lang.String path)
Set the path that this tag should apply. Can be a bean (e.g. "person"), or a bean property (e.g. "person.name"), also supporting nested beans.

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Description copied from class: RequestContextAwareTag
Create and set the current RequestContext. Note: Do not forget to call super.doStartTag() in subclasses!
Overrides:
doStartTag in class RequestContextAwareTag


Rod Johnson and Spring contributors 2001-2003.