Spring MVC, forward

Posted by aauser on Stack Overflow See other posts from Stack Overflow or by aauser
Published on 2010-06-08T13:50:19Z Indexed on 2010/06/08 20:32 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

Is there any difference between

public class Controller1 extends AbstractController {
    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        return new AnotherController().handleRequest(request, response);
    }
}

and

@Controller
public class Controller1 {

    @RequestMapping ...
    public String handleRequest() {
        return "forward:/path_to_my_another_controller";
    }
}

© Stack Overflow or respective owner

Related posts about java

Related posts about spring