close

Filter

loading table of contents...

Content Application Developer Manual / Version 2307

Table Of Contents
Redirecting to an external URL

When redirecting to an (external) URL, a RedirectView may be used for the ModelAndView that is returned from the handler method, for example:

RedirectView redirectView = new RedirectView("http://www.my-website.com/");
redirectView.setStatusCode(HttpStatus.MOVED_PERMANENTLY);

return new ModelAndView(redirectView);

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.