Hi all,
I have created a new Spring/Hibernate application which heavily depends on the SimpleFormController. I am using the dual mode feature which on HTTP GET returns a JSP and it’s related command object loaded via the formBackingObject method. And on HTTP POST calls the OnSubmit method.
Everything is working as expected, except when I set the successView of one controller to another Controller. I was hoping the forward would act as a HTTP GET, loading the command object via the formBackingObject and returning the JSP (as described in the first step above). No such luck, the only thing I have found is using a redirect. But that’s not a great solution.
I did try to use forward (forward:controller) but found forward, like HTTP post calls OnSubmit.
If anyone can let me know what I am doing wrong or suggest an alternative I would greatly appreciate it .


Reply With Quote