Back in the day, the servlet spec was meant to be generic that it could server other protocols (FTP, ...,?) other than HTTP. Fast forward to now, http is really the only thing that makes sense with respect to the servlet spec. (There is something called sip, but thats a different story).

Since the ServletContext is part of javax.servlet, it should not know anything about the Context path. Since that is an HTTP artifact.


-Tim


Heritier Arnaud wrote:
It's unfortunately what I saw.

I don't understand why in the servlet specs it is not possible to get it in the 
servlet init ?
The container should know the application context when it deploies the servlet.

It's weird.

Arnaud.


-----Message d'origine-----
De : Tim Funk [mailto:[EMAIL PROTECTED]
Envoy� : ven. 14 novembre 2003 02:44
� : Tomcat Users List
Objet : Re: How to retreive an application context path from a servlet
init()


AFAIK, it can only be retrieved via the HttpServletRequest


-Tim



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



Reply via email to