This might be a stupid question, but I had to ask.
Can anyone see any fault with this code. It will not work. In the onSubmit of Controller1 I have this code
return new ModelAndView(new RedirectView("Controller2"), "myObject", myObject);
In the formBackingObject of Controller2 I have this code
MyObject myObject = (MyObject) request.getAttribute("myObject");
I have tried sending text and objects this way, but it does not seem to get transfered from Controller1 to Controller2.
I have also tried to explicit set it by
request.setAttribute("myObject", myObject), but that will not work either.
Is there something I might be missing. It should work.


Reply With Quote
