Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Can't find ServletContext.getContextPath()

Bill Barker

2007-08-03

Replies:


"Mark Thomas" <markt@(protected)
news:46B3C80C.5040202@(protected)...
> aladdin wrote:
>> Hmmm! One other thing, if you please. There is no "name" attribute that
>> I
>> can find under the Context entry on the Tomcat website. If I use
>> getServletContextName(), where does the name come from?
>
> Of the top of my head, no idea. Have you tried looking at the source code?
>

It is whatever is in the <display-name>...</display-name> in your web.xml
file.

> Mark
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>




---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.