org.springframework.web.servlet.tags
Class BindErrorsTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.springframework.web.servlet.tags.RequestContextAwareTag
org.springframework.web.servlet.tags.HtmlEscapingAwareTag
org.springframework.web.servlet.tags.BindErrorsTag
- All Implemented Interfaces:
- Serializable, IterationTag, JspTag, Tag, TryCatchFinally
public class BindErrorsTag
- extends HtmlEscapingAwareTag
JSP tag that evaluates content if there are binding errors
for a certain bean. Exports an "errors" variable of type
Errors
for the given bean.
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
BindTag
,
Errors
,
Serialized Form
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, 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 |
ERRORS_VARIABLE_NAME
public static final String ERRORS_VARIABLE_NAME
- See Also:
- Constant Field Values
BindErrorsTag
public BindErrorsTag()
setName
public void setName(String name)
- Set the name of the bean that this tag should check.
getName
public String getName()
- Return the name of the bean that this tag checks.
doStartTagInternal
protected final int doStartTagInternal()
throws ServletException,
JspException
- Description copied from class:
RequestContextAwareTag
- Called by doStartTag to perform the actual work.
- Specified by:
doStartTagInternal
in class RequestContextAwareTag
- Returns:
- same as TagSupport.doStartTag
- Throws:
ServletException
JspException
- See Also:
TagSupport.doStartTag()
doEndTag
public int doEndTag()
- Specified by:
doEndTag
in interface Tag
- Overrides:
doEndTag
in class TagSupport
getErrors
public final Errors getErrors()
- Retrieve the Errors instance that this tag is currently bound to.
Intended for cooperating nesting tags.
doFinally
public void doFinally()
- Specified by:
doFinally
in interface TryCatchFinally
- Overrides:
doFinally
in class RequestContextAwareTag
Copyright © 2002-2008 The Spring Framework.