|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport org.springframework.web.servlet.tags.RequestContextAwareTag org.springframework.web.servlet.tags.BindTag
Bind tag, supporting evaluation of binding errors for a certain bean or bean property. Exports a "status" variable of type BindStatus
The errors object that has been bound using this tag is exposed, as well as the property that this errors object applies to. Children tags can use the exposed properties
Discussed in Chapter 12 of Expert One-On-One J2EE Design and Development by Rod Johnson.
Field Summary | |
static java.lang.String |
STATUS_VARIABLE_NAME
|
Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag |
logger |
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 | |
protected int |
doStartTagInternal()
Called by doStartTag to perform the actual work. |
java.beans.PropertyEditor |
getEditor()
Retrieve the property editor for the property that this tag is currently bound to. |
Errors |
getErrors()
Retrieve the Errors instance that this tag is currently bound to. |
java.lang.String |
getPath()
Retrieve the path that this tag should apply to |
java.lang.String |
getProperty()
Retrieve the property that this tag is currently bound to, or null if bound to an object rather than a specific property. |
void |
release()
|
void |
setPath(java.lang.String path)
Set the path that this tag should apply. |
Methods inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag |
doStartTag, getRequestContext, isHtmlEscape, setHtmlEscape |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, 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 |
Field Detail |
public static final java.lang.String STATUS_VARIABLE_NAME
Constructor Detail |
public BindTag()
Method Detail |
public void setPath(java.lang.String path) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public java.lang.String getPath()
null
if it is not setsetPath(String)
public Errors getErrors()
public java.lang.String getProperty()
public java.beans.PropertyEditor getEditor()
protected int doStartTagInternal() throws java.lang.Exception
RequestContextAwareTag
doStartTagInternal
in class RequestContextAwareTag
java.lang.Exception
- any exception, any checked one other than
a JspException gets wrapped in a JspException by doStartTagTagSupport.doStartTag()
public void release()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |