I need to pass an object to the page I'm going to redirect
@RequestMapping(value = "/createNewQuest",method={ RequestMethod.GET, RequestMethod.POST })
public ModelAndView createNewQuest(Quest quest,ModelAndView mav) {
questService.addQuest(quest);
mav.addObject("quest", quest);
mav.setViewName("redirect:/control/displayQuest");
return mav;
}
my controller class looks like this, but the displayQuest page does not receive the quest object?
any help would be very noticeable.
Akhil source
share