Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Controller
- @RequestMapping(value = "/dialog")
- public class DialogController {
- @RequestMapping(value = "/redirected.view")
- public ModelAndView redirected() {
- System.out.println( "DialogController.redirected()" );
- final ModelAndView mav = new ModelAndView( "redirected" );
- return mav;
- }
- @RequestMapping(value = "/form.view")
- public Object form() {
- System.out.println( "DialogController.form()" );
- return createModel();
- }
- private ModelAndView createModel() {
- final ModelAndView mav = new ModelAndView( "redirect:redirected.view" );
- return mav;
- }
- }
- @RequestMapping(value = "/search.form", method = RequestMethod.POST)
- public Object submit( @Valid @ModelAttribute("sequentialSearch") final SequentialSearchData searchObject,
- final BindingResult bindingResult, final Model model, final HttpSession session ) throws Exception {
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement