But I need the context path for a different ServletContext.
request.getContextPath returns the path for _this_ context, not a foreign
one.

> -----Original Message-----
> From: Wyn Easton [mailto:[EMAIL PROTECTED]]
> Sent: 11 November 2000 21:57
> To: [EMAIL PROTECTED]
> Subject: Re: Contexts and dispatchers
>
>
> --- Richard Evans <[EMAIL PROTECTED]> wrote:
> > "/file/x/y".  (The URL without the context root).  How to I find the
> > context
>
> Use request.getContextPath()
>
> If your web app. is called app1 getContextPath() would return /app1
>
>
>
>
> =====
> Wyn Easton
> [EMAIL PROTECTED]
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Calendar - Get organized for the holidays!
> http://calendar.yahoo.com/

Reply via email to