I have to read properties file “MyProperty.properties” from “ReadProp.java” class given my the following directory structure of my “war” file I am going to deploy.
MyApp.war
|
----MyProps
| |--MyProperty.properties
|---WEB-INF
| |--classes
| |---ReadProp.java
I am going to deploy this “war” file in “Sun portal server”.
But I should not change any of this directory structure because of the requirement specification.
what is the best way to read the property file “MyProperty.properties”
from “ReadProp.java” class ?
Got Answer