You can go to another action for continuous processing by redirect/forward:url way.
You can prevent a form from repeating commits by Redirect:url.
The wording is as follows:
return "Forward:/order/add";
return "redirect:/index.jsp";
With parameter redirection--redirectattributes
After the user saves or modifies, in order to prevent the user to refresh the browser (F5) causes the form to repeat commits, generally after the save or the modification operation will redirect to a result page (not forward), simultaneously carries the parameter, such as the operation successful prompt message. Because the attribute in the redirect,request will not pass the past. Spring provided this capability--redirectattributes at 3.1. Repeated press F5, the operation of the successful message will not come out again (a total of only one time), the effect is ideal.
Java code
Public String Save (@ModelAttribute ("group") group group, Redirectattributes redirectattributes) { Accountmanager.savegroup (group); Redirectattributes.addflashattribute ("message", "Operation succeeded"); return "redirect:/account/group/";}
[Spring MVC]-view of redirect and forward