Yes, ServletContext.getContextPath is in 6.0. -- Len On 8/4/07, aladdin <[EMAIL PROTECTED]> wrote: > Also that link says 2.4 Java API, not 2.5. Perhaps another indicator of an > artifact of earlier versions? > > But, y'all are confident getContextPath is in Tomcat 6.0? > > On Saturday 04 August 2007 08:43, David Smith wrote: > > Mark Thomas wrote: > > > 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 > > > > Hi Mark. > > > > I had the thought it might be in servlet spec 2.5 and I tried to check, > > but it's not up on the tomcat 6 docs site like servlet spec apis in > > previous versions. There's a link in the tomcat 6 docs to the servlet > > api, but it doesn't work. I suspect it's a left-over from when the docs > > were copied from the tomcat 5.5 docs site. > > > > See the Reference section of > > http://tomcat.apache.org/tomcat-6.0-doc/index.html and you'll know what > > I mean. > > > > > > --David > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]