hi,

New to Spring. Trying to use the SimpleFormController for my forms.
for testing, I have two forms, A and B, and two corresponding controllers, Ac, and Bc. User fill out some info on A, hit submit, and goes to B.

In Ac's onSubmit, I have this:

return new ModelAndView(getSuccessView(), "model", myModel);

When I do that, the referenceData() method in Bc was never called. So I changed it to:

return new ModelAndView(new RedirectView(getSuccessView() + ".htm"), "model", myModel);

Now referenceData() gets called, but the model object was not passed.

How do I ensure both?

Thanks,

yan