servletContext.getResourceAsStream("/WEB-INF/myfile");

https://stackoverflow.com/questions/1108434/how-to-load-a-resource-from-web-inf-directory-of-a-web-archive

How to load a resource from WEB-INF directory of a web archive

I have a web archive with a file placed in the WEB-INF directory. How do I load that file in a java class? I know I can put it in the classes directory and load it from there. It would just be pu...

stackoverflow.com


Posted by 張's blog
,