tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aris Javier" <aristotle.jav...@eazix.com>
Subject RE: How to get the context path for a web application?
Date Tue, 10 Aug 2004 04:34:02 GMT
also,

request.getContextPath();

aris

-----Original Message-----
From: Keith Bottner [mailto:kbottner@comcast.net] 
Sent: Tuesday, August 10, 2004 12:10 PM
To: 'Tomcat Users List'
Subject: RE: How to get the context path for a web application?


Have you tried ?

request.getServletPath();

Keith

-----Original Message-----
From: Dov Rosenberg [mailto:dov.rosenberg@conviveon.com] 
Sent: Monday, August 09, 2004 9:49 PM
To: Tomcat Users List
Subject: How to get the context path for a web application?


I need to find a way to get the context path of the current web
application. I would like to to it using the HttpSession,
HttpServletRequest or response. I tried the
ServletContext.getServletContextName but it returns null in Tomcat. Is
there a cross container solution?


-- 
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com


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


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


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


Mime
View raw message