You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by pa...@bt.com on 2001/10/17 10:38:43 UTC
TurbineServlet.getContextPath()
What exactly should TurbineServlet.getContextPath() return? Only it is
returning null when I call it.
I am trying to create the full url of the current location.
Cheers
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: TurbineServlet.getContextPath()
Posted by Jason van Zyl <jv...@apache.org>.
On 10/17/01 4:38 AM, "paul.hunter@bt.com" <pa...@bt.com> wrote:
> What exactly should TurbineServlet.getContextPath() return? Only it is
> returning null when I call it.
Is this from the 2.1 release? It's fixed in the HEAD of the
jakarta-turbine-2 repository. It will return the base directory name of your
webapp. So if your app is located in webapps/myapp than the method will
return 'myapp'.
> I am trying to create the full url of the current location.
>
> Cheers
>
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
--
jvz.
Jason van Zyl
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org