I am using a RedirectView from one page, supplying a name/value pair as the model as follows:
My Velocity template includes the following line:Code:View redirect = new RedirectView(getSuccessView()); return new ModelAndView(redirect, "name", "value");
The name/value pair is being added to the URL (http://localhost:8080/webapp/targetPage.htm?name=value) but is not being added to the Velocity context, so my template displays as "The value is $name", not "The value is value".Code:The value is $name<br>
I'm assuming that this is by design, I'm just not sure how I can get the name/value pair into the Velocity context so that it is available to the target template. Any help would be appreciated!