I have a controller that extends SimpleFormController. It's onSubmit method currently returns the following value:
How would I go about adding a parameter (from the onSubmit method) to the resulting URL?
return new ModelAndView(new RedirectView(this.getSuccessView()));
My current success view is: doSomething.html
I need it do be: doSomething.html?myParam=somethingDynamic
A (hackish) way to do it would be:
I'm wondering if there's a better way...
String view = this.getSucccessView() + "?myParam=" + myParam;
return new RedirectView(view);