Hi,
Maybe I overlook something. We can get context path
from HttpServletRequest.getContextPath() at request time.
But could one get the same path when the servlet is
initialized? Or simply say why we do not have an API like
ServletContext.getContextPath()?
Jing
Netspread Carrier
Zhou [mailto:[EMAIL PROTECTED]
Sent: July 30, 2003 11:18 PM
To: Struts Users Mailing List
Subject: Could one figure out the context path in Servlet.init() method?
Hi,
Maybe I overlook something. We can get context path
from HttpServletRequest.getContextPath() at request time.
But could one
(). Why can't the ServletContext
tell me its context path?
Jing
- Original Message -
From: Steve Raeburn [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:07 AM
Subject: RE: Could one figure out the context path in Servlet.init() method
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
.)
Jing
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; Jing
Zhou [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 10:57 AM
Subject: Re: Could one figure out the context path in Servlet.init() method
On Thu, 31 Jul 2003, Jing Zhou wrote:
Date: Thu, 31 Jul 2003 13:17:39 -0500
From: Jing Zhou [EMAIL PROTECTED]
To: Craig R. McClanahan [EMAIL PROTECTED],
Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Could one figure out the context path in Servlet.init()
method?
I
one figure out the context path in Servlet.init() method?
On Thu, 31 Jul 2003, Jing Zhou wrote:
Date: Thu, 31 Jul 2003 13:17:39 -0500
From: Jing Zhou [EMAIL PROTECTED]
To: Craig R. McClanahan [EMAIL PROTECTED],
Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Could one
7 matches
Mail list logo