« Return to Thread: ${param.foo} in velocity?

Re: ${param.foo} in velocity?

by Jason Pettiss-2 :: Rate this Message:

Reply to Author | View in Thread

Depends what your view servlet is.  If you've written your own, you can
just shove request.getParameterMap() under any name in the context
(like, uh, 'param').

If you're using the View servlet, check out:

http://velocity.apache.org/tools/devel/view/ParameterParser.html

Garrett Smith wrote:

> Hi,
>
> I would like to grab a request parameter in velocity.
>
> What is the correct syntax?
>
> Thank you,
>
> Garrett
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: ${param.foo} in velocity?