You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Heritier Arnaud <ah...@axway.com> on 2003/11/13 17:51:59 UTC
How to retreive an application context path from a servlet init()
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 ???
Thanx in advance.
Arnaud H.
Re: How to retreive an application context path from a servlet init()
Posted by Tim Funk <fu...@joedog.org>.
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org