In my Javabean, I am refering to a property file from where the bean takes
the information about the databaseName, url, username and password.
The properties file is in a folder called cfg. My DBconnectionBean.java file
is in the package beans. If I use the relative path ../cfg/config.properties
I am getting error. But if I give the full path say
c:\cfg\config.properties, it is working fine. Now I want to use the relative
path in my file instead of hardcoding the drive name.
How to use the relative path in Java?
Thanks in advance
Muthu
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets