; From: shanmugampl [mailto:[EMAIL PROTECTED]]
> Sent: 5. október 2002 03:52
> To: [EMAIL PROTECTED]
> Subject: Re: Getting the name of the context
>
>
>
> Thanks for your suggestion, but i load the servlet on startup
> by giving
> it in the . In the servlets init meth
On Sat, 5 Oct 2002, shanmugampl wrote:
> Date: Sat, 05 Oct 2002 09:22:23 +0530
> From: shanmugampl <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: Getting the name of the
Thanks for your suggestion, but i load the servlet on startup by giving
it in the . In the servlets init method i will be
initializing some basic parameters. Here I want the name of the context
for regestering it. I do not have access to the request object from my
init method. How do i get th
Use request.getContextPath().
Craig
On Fri, 4 Oct 2002, shanmugampl wrote:
> Date: Fri, 04 Oct 2002 17:20:52 +0530
> From: shanmugampl <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Getting the name of the conte
HttpServletRequest.getContextPath() returns the context path name.
jon wingfield wrote:
> you could extract it from servletContext.getRealPath("/");
>
> -Original Message-
> From: shanmugampl [mailto:[EMAIL PROTECTED]]
> Sent: 04 October 2002 12:51
> To: [EMAIL PROTECTED]
> Subject: Gett
you could extract it from servletContext.getRealPath("/");
-Original Message-
From: shanmugampl [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2002 12:51
To: [EMAIL PROTECTED]
Subject: Getting the name of the context
Hi,
I have a requirement where i need to know the name of the context