velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: Velocity Taglib and access to current request object
Date Sun, 08 Sep 2002 16:15:43 GMT
On 9/7/02 10:13 AM, "Thomas Fahrmeyer" <thomas@fahrmeyer.de> wrote:

> Hi,
> 
> i've just installed the Velocity Taglib to integrate velocity into JSP
> pages. I'm wondering how can I access the current request and response
> object to perform the URL encoding. I've tried a lot of things but didn't
> get it to work
> 
> What i wanna have is
> 
> <vel:velocity>
> <a href="$response.encodeURL("/path")">Link </a>
> </vel:velocity>
> 
> How can i get this to work ?

We can add it.  I'm a little loathe to choose the referent ('response') that
is used, but maybe we can add it as a parameter somewhere or have some
attrib way of doing it :


 <vel:velocity response="response">


Or something...

    
-- 
Geir Magnusson Jr. 
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



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


Mime
View raw message