I have some questions concerning forwarding data to a form. I have a situation where a form on my site is submit and upon sucess another form is displayed and initialized.
I have overridden onSubmit() in my first form and am creating the command class that the second form expects such as:
return new ModelAndView(getSuccessView(), "myModelObject", myModelObject);
I am ok up to this point. However, I'm confused about two things. First, when my subsequent form is invoked, my formBackingObject() method is not being called. However, the jsp for my form IS being rendered. I have setup the successView property of my initial form to the logic view name of the second form? Isn't this correct? My controller isn't being invoked on the second form but the jsp is being rendered. Why is this?
Second question is how do I access the data that was passed along to the second controller inside of its formBackingObject() method? Will the object just be an attribute in the request?


Reply With Quote