public class

BindErrorsTag

extends HtmlEscapingAwareTag
java.lang.Object
   ↳ TagSupport
     ↳ org.springframework.web.servlet.tags.RequestContextAwareTag
       ↳ org.springframework.web.servlet.tags.HtmlEscapingAwareTag
         ↳ org.springframework.web.servlet.tags.BindErrorsTag

Class Overview

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.

See Also

Summary

Constants
String ERRORS_VARIABLE_NAME
[Expand]
Inherited Constants
From class org.springframework.web.servlet.tags.RequestContextAwareTag
[Expand]
Inherited Fields
From class org.springframework.web.servlet.tags.RequestContextAwareTag
Public Constructors
BindErrorsTag()
Public Methods
int doEndTag()
void doFinally()
final 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.
Protected Methods
final int doStartTagInternal()
Called by doStartTag to perform the actual work.
[Expand]
Inherited Methods
From class org.springframework.web.servlet.tags.HtmlEscapingAwareTag
From class org.springframework.web.servlet.tags.RequestContextAwareTag
From class java.lang.Object

Constants

public static final String ERRORS_VARIABLE_NAME

Constant Value: "errors"

Public Constructors

public BindErrorsTag ()

Public Methods

public int doEndTag ()

public void doFinally ()

public final Errors getErrors ()

Retrieve the Errors instance that this tag is currently bound to.

Intended for cooperating nesting tags.

public String getName ()

Return the name of the bean that this tag checks.

public void setName (String name)

Set the name of the bean that this tag should check.

Protected Methods

protected final int doStartTagInternal ()

Called by doStartTag to perform the actual work.

Returns
  • same as TagSupport.doStartTag
Throws
JspException
ServletException