Product: tomcat standalone
Version: 4.0 beta 7
I'm deploying ChatHouse servlet as WAR file. web.xml points some file inside the WAR 
as init parameter. Is there mechanism to refer files inside WAR in servlet/JSP using 
only context name? I expected that WEB-INF/conf/myfile.txt will work, but it doesn't. 
Only providing some weird path like ../webapps/ChatHouse/WEB-INF/conf/myfile.txt 
brought me success. But it looks so specific for Tomcat, and fairly won't work on 
other systems. I can put this text file in some of JAR files and access it using class 
loader, but I would prefer refer it as a regular file. Is there some generic way to do 
that?

Thanks,
Dmitry R., [EMAIL PROTECTED]
Chief Software Architect, MetricStream.COM
Santa Clara, CA

___________________________________________________________________________
Visit http://www.visto.com.
Find out  how companies are linking mobile users to the 
enterprise with Visto.

Reply via email to