velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@alaska.net>
Subject Re: Usage question.
Date Tue, 18 Jan 2005 04:09:38 GMT
Andrew Wilson <andrew.wilson@db.com> wrote:
> Id like to include the following code in my Velocity Template:
> 
> ${request.getProperty(Request.ID)}
> 
> Unfortunately, this doesn't compile.
> 
> Is there a clever way I can do this with a Macro?
> Since request is an instance of Request I would also be happy with
> 
> ${request.getProperty(${request.ID})}

If "Request.ID" is a literal, put it in quotes.
If it's not a literal, you'll have to provide us with more information.

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message