I have been trying to load properties file into web app in WSAD using following code.
Properties p = new Properties();
InputStream i = Runtime.getRuntime().getClass().getResourceAsStream("connect.properties");
The location of the properties file is at
Java source/connect.properties. When I try to load the properties file as above, I am getting null InputStream. I have tried to give absolute path to get to connect.properties with no success. The same code works fine in Eclipse but not in WSAD 4. May be I am missing some thing here! I would appreciate your help on this issue.
Thanks