A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
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:
subject: how to load properties file
Static method and Servlet
Problem loading Properties file
reading files & caching
How do you separate Server configuration (urls, domains) properties from a Web Application?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014