File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to load properties file
Joined: Sep 09, 2009
Sep 09, 2009 04:04:57
I have a dynamic web project. And i have my .properties file in webcontent/config/myApp.properties
I am able to read the properties file from
But i have a
class propertyloader.java in some package. All I wanted to do is load this property file from the class instead of servlet.
Any help will be greatly appreciated.
Thanks in advance.
Joined: Sep 07, 2008
Sep 09, 2009 05:54:20
Welcome to Java Ranch......
Refer below link I think this will solve your problem !!
Load Property File
Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: how to load properties file
How do you separate Server configuration (urls, domains) properties from a Web Application?
Static method and Servlet
Problem loading Properties file
reading files & caching
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013