title: Spring custom error message
body: <p>I want to set a custom error message via <code>@Controller</code>,
  there is something like Struts <code>saveMessages(...)</code> in spring?</p>
  
  <p>for example:</p>
  
  <pre><code>ActionErrors actionErrors = new ActionErrors();
  actionErrors.add("error", new ActionMessage("error.missing.key",     
  messageResources.getMessage("label.username"),  
  messageResources.getMessage("label.password")));
  saveErrors(request, actionErrors);
  </code></pre>