${param.foo} in velocity?

View: New views
2 Messages — Rating Filter:   Alert me  

${param.foo} in velocity?

by Garrett :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...


Re: ${param.foo} in velocity?

by Jason Pettiss-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...