velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <>
Subject Re: form parameter
Date Tue, 13 Aug 2002 11:51:35 GMT
On 8/13/02 9:39 AM, "Tomasz Mielnik" <> wrote:

> hi all
> i used to code in PHP where i have a globa variable like this:
> $PHP_SELF or $_SERVER["PHP_SELF"] which holded the url of the
> actualy parsed script.
> can i do the same in velocity/jsp? what i'm askin for is a url of actual
> parsed servlet/jsp.

Look at the request object.  It should be in the velocity context, if using
the VelocitySerlvet as a base class, as $req

Look at the API docs for javax.servlet.http.HttpServletRequest for more info
on what that class provides.

Geir Magnusson Jr. 
Research & Development, Adeptra Inc.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message