title: Spring 3 MVC redirect: is giving me a 404 when trying to redirect to another controller
body: <p>My view resolver:</p>
  
  <pre><code>&lt;bean id="htmlView" class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix" value="/WEB-INF/views" /&gt;
      &lt;property name="suffix" value=".jsp" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>@RequestMapping(value="/account/register", method=RequestMethod.POST)
  public String registerHandler(@Valid RegisterForm registerForm, BindingResult bindingResult) {
      if (bindingResult.hasErrors()) {
          return "/account/register";
      }
      return "redirect:/account/profile";
  }
  </code></pre>
  
  <p>If there are errors then it returns just fine back to the account registration page. After reading some of the official docs, it appears that redirect will try to resolve the view to the current servlet context. Since "account/profile" resides in another controller, it doesn't seem to know what to do with it. I tried returning a RedirectView without much success either. Any help is appreciated.</p>