Howdy, And furthermore, there's the whole discussion on how servlets (and related artifacts) should know as little as possible about their container, should never use getRealPath(), etc. This argument has been discussed on this list several times in the past.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Tim Funk [mailto:[EMAIL PROTECTED] >Sent: Friday, November 14, 2003 6:54 AM >To: Tomcat Users List >Subject: Re: How to retreive an application context path from a servlet >init() > >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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
