I am having hard time in reading the property file from my plain java class in a web application.
Does relative path, in order to read a file, not work in a web application?
I am able to read that file by defining an absolute path but relative path is not working. I dont want to use servletContext.getRealPath() and then concat that to my relative path. Is there any other way around?
Thanks.
Does relative path, in order to read a file, not work in a web application?
I am able to read that file by defining an absolute path but relative path is not working. I dont want to use servletContext.getRealPath() and then concat that to my relative path. Is there any other way around?
Thanks.