A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
reading a properties file from the war file
Joined: Sep 01, 2009
Oct 21, 2009 06:35:51
I have a properties file located in the root of the war file.
How do I read in that properties file when the servet is deployed?
Joined: Mar 22, 2005
Oct 21, 2009 06:42:45
That's what ServletContext.getResourceAsStream is for.
You may want to move the file from the web app root into the WEB-INF directory, though, lest it becomes publicly accessible.
Ping & DNS, my free Android app for network diagnostics
I agree. Here's the link:
subject: reading a properties file from the war file
best place to put configuration properties.
Don't see properties files after deployment from Jdeveloper 11g
cannot load property file from WAR
Access deployed archive contents
Internatonalization in Liferay
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014