Hi,
I have a properties file in the following path :
/WebContent/WEB-INF/systemoperations.properties
I am trying to load the properties file in my
servlet init() method.
I tried the following code:
Properties properties =null;
InputStream inputStream = ClassLoader.getSystemResourceAsStream("WEB-INF/serviceoperations.properties");
properties = new Properties();
properties.load(inputStream);
but this piece of code is throwing a null pointer exception.
Please help me resolve this problem.
I am using Eclipse Europa.
Thanks!