Java Mailing List Archive

http://www.junlu.com/

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

Reading war file name from servlet?

Erlandsson Martin

2004-02-19



Hi list.

I have a bunch of similar servlets for which I would like to set up configuration directories. These paths should ideally be based on the names of the different war files.

How can I retreive the war file name or the context path (or docBase) of a servlet from _within_ that servlet?


Thanks,

/Martin



Á

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



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