| java.lang.Object org.springframework.web.bind.EscapedErrors
EscapedErrors | public class EscapedErrors implements Errors(Code) | | Errors wrapper that adds automatic HTML escaping to the wrapped instance,
for convenient usage in HTML views. Can be retrieved easily via
RequestContext's getErrors method.
Note that BindTag does not use this class to avoid unnecessary
creation of ObjectError instances. It just escapes the messages and values
that get copied into the respective BindStatus instance.
author: Juergen Hoeller since: 01.03.2003 See Also: org.springframework.web.servlet.support.RequestContext.getErrors See Also: org.springframework.web.servlet.tags.BindTag |
Constructor Summary | |
public | EscapedErrors(Errors source) Create a new EscapedErrors instance for the given source instance. |
EscapedErrors | public EscapedErrors(Errors source)(Code) | | Create a new EscapedErrors instance for the given source instance.
|
getErrorCount | public int getErrorCount()(Code) | | |
getFieldErrorCount | public int getFieldErrorCount()(Code) | | |
getFieldErrorCount | public int getFieldErrorCount(String field)(Code) | | |
getGlobalErrorCount | public int getGlobalErrorCount()(Code) | | |
getGlobalErrors | public List getGlobalErrors()(Code) | | |
hasErrors | public boolean hasErrors()(Code) | | |
hasFieldErrors | public boolean hasFieldErrors()(Code) | | |
hasFieldErrors | public boolean hasFieldErrors(String field)(Code) | | |
hasGlobalErrors | public boolean hasGlobalErrors()(Code) | | |
pushNestedPath | public void pushNestedPath(String subPath)(Code) | | |
setNestedPath | public void setNestedPath(String nestedPath)(Code) | | |
|
|