On Thu, 31 Jul 2003, Jing Zhou wrote:

>
> I am wondering if there is a way to get the context path without
> using init parameters during the initialization of a servlet.
> Any clues? We have ServletContext.getRealPath(), but not
> the ServletContext.getContextPath(). Why can't the ServletContext
> tell me its context path?
>

You are assuming that a web applicaton only has one context path.  That
does not have to be the case.

> Jing

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to