On 28/01/2011 20:54, Caldarale, Charles R wrote:
>> From: [email protected] [mailto:[email protected]] 
>> Subject: RE: deploying a war file and starting the application
> 
>> I make reference to getRealPath to load a property file.
> 
> It's definitely a bad thing to do.  You should be using 
> ServletContext#getResourceAsStream(). 

+1. That will also mean you app will work (well, that part of it at
least) as an exploded directory or as a WAR file.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to