Hello,

I have one sample project named as TMS, In my "WEB-INF/conf" foler contains
database.properties file. It contains

e.g
hostname = some host name
url= some url

This project contains only one database.properties file.
In java file, I want to get hostname and url from that property file.

e.g.

Properties props=new Properties () ;
props.load ( new FileInputStream ( new File
("E:\\Workspace\\TMS\\WebRoot\\WEB-INF\\conf\\database.properties"))) ;

String host= "hostname";
String val = props.getProperty ("Host Name Is :"+ host ) ;

Using the above code, I have got both hostname and url.

But my problem is, How to get the current project database.properties file
path.

Because in the above path name is hard coded.

So How we get current project database.properties file path?

Thanking you.

--------------------

Thank You
Edward
-- 
View this message in context: 
http://www.nabble.com/How-to-get-path-name--tf4363832.html#a12438194
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to