You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Geir Magnusson Jr." <ge...@adeptra.com> on 2002/08/13 13:51:35 UTC

Re: form parameter

On 8/13/02 9:39 AM, "Tomasz Mielnik" <to...@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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>