RE: Getting the name of the context

2002-10-05 Thread Reynir Hübner
; 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

Re: Getting the name of the context

2002-10-04 Thread Craig R. McClanahan
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

Re: Getting the name of the context

2002-10-04 Thread shanmugampl
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

Re: Getting the name of the context

2002-10-04 Thread Craig R. McClanahan
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

Re: Getting the name of the context

2002-10-04 Thread Tim Funk
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

RE: Getting the name of the context

2002-10-04 Thread jon wingfield
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