title: Redirecting to a different context url from Controller in Spring MVC 2.5
body: <p>From the controller I have to redirect to a different <code>ServletContext</code> using </p>
  
  <p><code>ModelAndView</code> object.The  current servletcontext is /user , but I have to </p>
  
  <p>redirect to /man.</p>
  
  <p>I tried to redirect using</p>
  
  <pre><code>return  new ModelAndView("redirect:/man/dashboard.htm", map);
  </code></pre>
  
  <p>This didnt work out, just appended to current context like /user/man/dashboard.htm</p>
  
  <p>So I tried with </p>
  
  <pre><code>return  new ModelAndView(new RedirectView(request.getContextPath()+"/man/Dashboard.htm", false), map);
  </code></pre>
  
  <p>This worked, but I am not sure whether this a good approach or not.</p>
  
  <p>or any other possibilities?</p>