Redirect
Learn Redirect (Model & View, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Redirect tells the browser to make a new request to another URL: the server answers with status 302 or 303 and a Location header. Effect : the address bar changes and the model and request attributes are lost, because it is a brand new request. Use it after a successful POST (Post-Redirect-Get) so that refreshing the page does not submit the form again.