站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

Uses of Interface org.springframework.validation.Errors (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


Uses of Interface
org.springframework.validation.Errors

Packages that use Errors
org.springframework.validation Provides data binding and validation functionality, for usage in business and/or UI layers. 
org.springframework.web.bind Provides web-specific data binding functionality, including a utility class for easy invocation of binding and validation. 
org.springframework.web.servlet.mvc Standard controller implementations for the MVC framework that comes with Spring. 
org.springframework.web.servlet.support Support classes for Spring's web MVC framework. 
org.springframework.web.servlet.tags Spring's standard custom tag library. 
org.springframework.web.struts Support classes for integrating a Struts web tier with a Spring middle tier which is typically hosted in a Spring root WebApplicationContext. 
 

Uses of Errors in org.springframework.validation
 

Classes in org.springframework.validation that implement Errors
 class BindException
          Default implementation of the Errors interface, supporting registration and evaluation of binding errors.
 

Methods in org.springframework.validation with parameters of type Errors
 void Errors.addAllErrors(Errors errors)
          Add all errors from the given Errors instance to this Errors instance.
 void BindException.addAllErrors(Errors errors)
           
static void ValidationUtils.invokeValidator(Validator validator, Object obj, Errors errors)
          Invoke the given validator for the given object and Errors instance.
static void ValidationUtils.rejectIfEmpty(Errors errors, String field, String errorCode)
          Reject the given field with the given error code and message if the value is empty.
static void ValidationUtils.rejectIfEmpty(Errors errors, String field, String errorCode, Object[] errorArgs, String defaultMessage)
          Reject the given field with the given error code, error arguments and message if the value is empty.
static void ValidationUtils.rejectIfEmpty(Errors errors, String field, String errorCode, String defaultMessage)
          Reject the given field with the given error code and message if the value is empty.
static void ValidationUtils.rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode)
          Reject the given field with the given error code and message if the value is empty or just contains whitespace.
static void ValidationUtils.rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode, Object[] errorArgs, String defaultMessage)
          Reject the given field with the given error code, error arguments and message if the value is empty or just contains whitespace.
static void ValidationUtils.rejectIfEmptyOrWhitespace(Errors errors, String field, String errorCode, String defaultMessage)
          Reject the given field with the given error code and message if the value is empty or just contains whitespace.
 void Validator.validate(Object obj, Errors errors)
          Validate an object, which must be of a class for which the supports() method returned true.
 

Uses of Errors in org.springframework.web.bind
 

Classes in org.springframework.web.bind that implement Errors
 class EscapedErrors
          Errors wrapper that adds automatic HTML escaping to the wrapped instance, for convenient usage in HTML views.
 

Methods in org.springframework.web.bind that return Errors
 Errors EscapedErrors.getSource()
           
 

Methods in org.springframework.web.bind with parameters of type Errors
 void EscapedErrors.addAllErrors(Errors errors)
           
 

Constructors in org.springframework.web.bind with parameters of type Errors
EscapedErrors(Errors source)
          Create a new EscapedErrors instance for the given source instance.
 

Uses of Errors in org.springframework.web.servlet.mvc
 

Methods in org.springframework.web.servlet.mvc with parameters of type Errors
protected  int AbstractWizardFormController.getTargetPage(HttpServletRequest request, Object command, Errors errors, int currentPage)
          Return the target page specified in the request.
protected  void AbstractWizardFormController.postProcessPage(HttpServletRequest request, Object command, Errors errors, int page)
          Post-process the given page after binding and validation, potentially updating its command object.
protected  Map SimpleFormController.referenceData(HttpServletRequest request, Object command, Errors errors)
          Create a reference data map for the given request and command, consisting of bean name/bean instance pairs as expected by ModelAndView.
protected  Map AbstractWizardFormController.referenceData(HttpServletRequest request, Object command, Errors errors)
          Calls page-specific referenceData method.
protected  Map AbstractFormController.referenceData(HttpServletRequest request, Object command, Errors errors)
          Create a reference data map for the given request, consisting of bean name/bean instance pairs as expected by ModelAndView.
protected  Map AbstractWizardFormController.referenceData(HttpServletRequest request, Object command, Errors errors, int page)
          Create a reference data map for the given request, consisting of bean name/bean instance pairs as expected by ModelAndView.
protected  void AbstractWizardFormController.validatePage(Object command, Errors errors, int page)
          Template method for custom validation logic for individual pages.
protected  void AbstractWizardFormController.validatePage(Object command, Errors errors, int page, boolean finish)
          Template method for custom validation logic for individual pages.
 

Uses of Errors in org.springframework.web.servlet.support
 

Methods in org.springframework.web.servlet.support that return Errors
 Errors BindStatus.getErrors()
          Return the Errors instance that this bind status is currently bound to.
 Errors RequestContext.getErrors(String name)
          Retrieve the Errors instance for the given bind object, using the defaultHtmlEscape setting.
 Errors RequestContext.getErrors(String name, boolean htmlEscape)
          Retrieve the Errors instance for the given bind object.
 

Uses of Errors in org.springframework.web.servlet.tags
 

Methods in org.springframework.web.servlet.tags that return Errors
 Errors BindTag.getErrors()
          Retrieve the Errors instance that this tag is currently bound to.
 Errors BindErrorsTag.getErrors()
          Retrieve the Errors instance that this tag is currently bound to.
 

Uses of Errors in org.springframework.web.struts
 

Methods in org.springframework.web.struts with parameters of type Errors
 void SpringBindingActionForm.expose(Errors errors, HttpServletRequest request)
          Set the Errors object that this SpringBindingActionForm is supposed to wrap.
 



Copyright (c) 2002-2007 The Spring Framework Project.