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
'servlet & jsp' 카테고리의 다른 글
세션만료 추적(쿠키활용) (0) | 2020.10.11 |
---|---|
request to map (0) | 2018.11.14 |
default servlet 설정 (0) | 2018.05.23 |
client IP 가져오기 (0) | 2018.04.21 |
[링크] 자바 Http / https 의 결과를 주고받을때 세션을 유지하고 싶다면! (0) | 2018.04.09 |