tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Can't find ServletContext.getContextPath()
Date Sat, 04 Aug 2007 00:24:05 GMT
aladdin wrote:
> If you go here (Sun's official docs):
> 
> http://java.sun.com/javaee/5/docs/api/
> 
> you'll find it under the ServletContext interface.  However, not being one to 
> argue with the obvious, I'm surely going to take your advice, and, in fact, 
> thank you very much for it.
> 
> Can you post the URL to the Tomcat api docs that you mentioned in your first 
> email?  It looks like that maybe I should be using that instead of Sun's 
> documentation, although, after at least a couple of years of doing this, this 
> is the first time I've seen a disconnect between Tomcat and Sun's official 
> documentation.

ServletContext.getContextPath() was introduced in the 2.5 spec so
you'll need to use Tomcat 6 or later to make use of it.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message