velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@adeptra.com>
Subject Re: form parameter
Date Tue, 13 Aug 2002 11:51:35 GMT
On 8/13/02 9:39 AM, "Tomasz Mielnik" <tomasz.mielnik@tdcinternet.pl> 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.
> TIA

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