tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Kreutzer <g.kreut...@kreutzersoft.de>
Subject Re: Can I get the webapp context path from the init method of a servlet
Date Sat, 26 Jul 2003 06:23:10 GMT
Stephen Ince wrote:

>I am trying to get the context path from the javax.servlet API  for a
>servlet when it is being initialized (init) and not when it is invoked (not
>via service, doGet, doPost ..).
>I know that I can get it from the request.getContextPath() method but this
>can only be done when the
>servlet is invoked.
>
>  
>
I think this is *not* a question for tomcat-dev list..

ServletConfig#getServletContext()
GenericServlet#getServletContext()

-- 
KreutzerSoft
Bärenbühlgraben 76, 90475 Nürnberg
Tel: +49-911-8324-57
Fax: +49-911-8324-61
mailto:G.Kreutzer@KreutzerSoft.de
http://www.KreutzerSoft.de 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message