Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reading from Properties Files using relative path

807589Aug 24 2004 — edited Jul 30 2008
Hey Guys,

I am Using BEA WEblogic Workshops SP2 to build a J2ee application. In one of the codes, I have to load a properties object using a particulare properties file. TYhis works fine when i give the local path of that properties file . Thats is if i load the properties object with a file located at C:\..\...\.. It works fine.

However, I dont want to give the aboslute path of the propeties file. I want to read the properties file by giving the relative path opf the properties file. The path will be according to our context path .

OPlease help. Thanks a lot
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2008
Added on Aug 24 2004
32 comments
6,038 views