What is the proper way to forward a request in spring to a different controller?
@RequestMapping({\"/someurl\"})
public ModelAndView execute(Model model) {
i
You can use view name like "redirect:controllerName" or "forward:controllerName". The latter will reroute request to another controller and former will tell browser to redirect request to another url.
docs: https://docs.spring.io/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#mvc-redirecting-redirect-prefix