类 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
- 所有已实现的接口:
Serializable
,IterationTag
,JspTag
,Tag
,TryCatchFinally
public class BindErrorsTag extends HtmlEscapingAwareTag
This<hasBindErrors>
tag provides anErrors
instance in case of bind errors. The HTML escaping flag participates in a page-wide or application-wide setting (i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).Attribute Summary Attribute Required? Runtime Expression? Description htmlEscape false true Set HTML escaping for this tag, as boolean value. Overrides the default HTML escaping setting for the current page. name true true The name of the bean in the request that needs to be inspected for errors. If errors are available for this bean, they will be bound under the 'errors' key.
字段概要
字段 修饰符和类型 字段 说明 static String
ERRORS_VARIABLE_NAME
Page context attribute containingErrors
.从类继承的字段 org.springframework.web.servlet.tags.RequestContextAwareTag
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
从类继承的字段 javax.servlet.jsp.tagext.TagSupport
id, pageContext
从接口继承的字段 javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
从接口继承的字段 javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
构造器概要
构造器 构造器 说明 BindErrorsTag()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
doEndTag()
void
doFinally()
protected int
doStartTagInternal()
Called by doStartTag to perform the actual work.Errors
getErrors()
Retrieve the Errors instance that this tag is currently bound to.String
getName()
Return the name of the bean that this tag checks.void
setName(String name)
Set the name of the bean that this tag should check.从类继承的方法 org.springframework.web.servlet.tags.HtmlEscapingAwareTag
htmlEscape, isDefaultHtmlEscape, isHtmlEscape, isResponseEncodedHtmlEscape, setHtmlEscape
从类继承的方法 org.springframework.web.servlet.tags.RequestContextAwareTag
doCatch, doStartTag, getRequestContext
从类继承的方法 javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
字段详细资料
ERRORS_VARIABLE_NAME
public static final String ERRORS_VARIABLE_NAME
Page context attribute containingErrors
.- 另请参阅:
- 常量字段值
构造器详细资料
BindErrorsTag
public BindErrorsTag()
方法详细资料
doStartTagInternal
protected final int doStartTagInternal() throws ServletException, JspException
从类复制的说明:RequestContextAwareTag
Called by doStartTag to perform the actual work.- 指定者:
doStartTagInternal
在类中RequestContextAwareTag
- 返回:
- same as TagSupport.doStartTag
- 抛出:
ServletException
JspException
- 另请参阅:
TagSupport.doStartTag()
doEndTag
public int doEndTag()
- 指定者:
doEndTag
在接口中Tag
- 覆盖:
doEndTag
在类中TagSupport
getErrors
@Nullable public final Errors getErrors()
Retrieve the Errors instance that this tag is currently bound to.Intended for cooperating nesting tags.
doFinally
public void doFinally()
- 指定者:
doFinally
在接口中TryCatchFinally
- 覆盖:
doFinally
在类中RequestContextAwareTag