Hi,
I'm trying to create a WebService (Weblogic Workshop 8.1) that needs to read some information from a file (path=/WEB-INF/config/policies.txt).
I need to use relative paths, not absolute paths, but I don't know how to make this.
In the Controller or in a servlet I would use
or
to read this file, with an InputStream or a File, but in the jws I cannot use this.
Does anyone knows how can I do this?
Thanks
I'm trying to create a WebService (Weblogic Workshop 8.1) that needs to read some information from a file (path=/WEB-INF/config/policies.txt).
I need to use relative paths, not absolute paths, but I don't know how to make this.
In the Controller or in a servlet I would use
Code:
getServletContext().getResourceAsStream(path)
Code:
getServletContext().getRealPath("/")+path
Does anyone knows how can I do this?
Thanks