Hi all,
Here is the directory structure as per eclipse: -
Project:-
SWA_JSP
|
|-----src
| |
| |---org.omkar.swa.resources (package)
| | |
| | |----login.properties
| |
| |---org.omkar.swa.servlets
| | |
| | |----LoginServlet.java
| |
| |---org.omkar.swa.test
| | |
| | |----Tester.java
|
|
|-----WebContent
| |
| |---login.jsp
Now, as per the above structure, ... my problem is to load the
login.properties file in the
init() method of the
LoginServlet.java ...since i need some parameters from the property file. My problem is, i am not able to load the file when i run the server,....i have placed following code in the init() method: -
the value of inputStream is null, ... however, if i run this piece of code in the Tester.java which is a simple void main standalone class,....it runs perfectly well!!!...the property file gets loaded!!! ... Why the difference ?
How do i load the property file, when running the server ?
Thanks and Regards
Omkar Patkar