I am having trouble getting the model in referenceData() of the new controller.
Here is what I am doing..
Code:
Map model;
ModelAndView modelAndView = new ModelAndView(new RedirectView("showMyNewTarget.do"));
modelAndView.addObject("targetModel", model);
return modelAndView;
In the URL I do see targetModel with the correct data. How do I get it off the URL in my referenceData() of the controller? Please help.
I have tried both of the following but nothing seems to work.
Code:
Map empModel = (Map) request.getAttribute("targetModel");
Code:
Map empModel = (Map) request.getParameterMap();
Can some one please tell me what I am missing here.