Hi.

First, thanks for your attention. I'm a novel user in Spring MVC, pleasse by patient.

I have problems, I can't show the validation errors in the view. My code is something like that:

The MultiactionController:
*** @Override
*** protected void bind(HttpServletRequest request, Object command)*** throws Exception {
***
*** *** ServletRequestDataBinder binder = createBinder(request,command);
*** *** binder.bind(request);
*** ***
*** *** if (validatorMap != null) {
*** *********** Validator validator = validatorMap.get(this.getMethodNameResolver().getH andlerMethodName(request));
*** *********** if (validator != null) {
*** *************** validator.validate(command, binder.getBindingResult());
*** *********** }
*** ** }
*** *** errors = binder.getBindingResult();

//the instance variale "errors" has the error to show
*** }

Controller's Methods for the request:

*** public ModelAndView newUser(HttpServletRequest request, HttpServletResponse response, Usuarios command) throws Exception {
*** ***
*** *** Usuarios usr = (Usuarios)command;
*** *** System.out.println("----> UsuariosController:newUser");
*** *** if(!errors.hasErrors())
*** *** *** mgr.save(usr);
*** *** else
*** *** *** System.out.println(" ##### Error for user validations.######");
*** *** model.put("usuarios", usr);
*** *** return new ModelAndView("adm_usr", model);
*** }


the mehtod of the validator for executing:

public void validate(Object command, Errors errors) {
*** ****** Usuarios usr = (Usuarios) command;
*** ****** ValidationUtils.rejectIfEmptyOrWhitespace(errors, "txNombre","Error in the name", "Error in the name");
*** ****** validateNombre(usr.getTxNombre(), errors);
} **

private void validateNombre(String nombre, Errors errors){
*** *** if(!nombre.trim().matches("[a-zA-Z0-9]"))
*** *** *** errors.rejectValue("txNombre", "Error in the name", "Error in the name");
}

And the view is:
....................
<form:input name="nombre" title="nombre" id="nombre" path="txNombre" value="${usuarios.txNombre}"* cssClass="input_form"/>
<form:errors path="txNombre" cssClass="font_error"/>