> Well, you should assert not null, as ever.
I think the point was that by performing the String concatenation, you
make it difficult to check for the error condition, and postpone the
resulting incorrect behavior until an unspecified later dat, by which
time you may have hosed any associated data.
> Regardless of the doc you quoted, it works in Tomcat, indeed from .war
> archives.
Tomcat is unique, in that it silently expands WAR files to a different
location before it will run the code. Thus, it works there even though
it doesn't work in the general case. Other web app containers are not
required to follow Tomcat's lead here.
> So if this is wrong, what's the right way to do it?
Best to use ServletContext.getResource, and use the resulting
InputStream to parse the Properties file.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation