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 > > Heritier Arnaud wrote: > > Hi guys !! > > > > I have a Struts application and I extend the ActionServlet. > > In the init(ServletConfig) method I would like to retreive > the context path of the application where the servlet is used. > > I didn't find a solution. > > Am I stupid or too tired?? > > > > Do you have a standard servlet or a Struts specific > solution to acheive this ??? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
