brianstclair
Sep 25th, 2004, 01:11 PM
I am using a RedirectView from one page, supplying a name/value pair as the model as follows:
View redirect = new RedirectView(getSuccessView());
return new ModelAndView(redirect, "name", "value");
My Velocity template includes the following line:
The value is $name<br>
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".
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!
Brian
View redirect = new RedirectView(getSuccessView());
return new ModelAndView(redirect, "name", "value");
My Velocity template includes the following line:
The value is $name<br>
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".
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!
Brian