I am using a properties file that contains SQL queries for my DAOs.
I open it through a getResourceAsStream()
method. However, this only works if the properties file is in the same package as the DAO classes.
What I have to do though is place it in a properties folder that should be in the same level as the WebContent
folder.
I am using eclipse as an IDE. I noticed that when I have a main method I can access the file but not anymore when I am running an application.