I have a maven directory structure:
 /src
    /main
        /java 
        /resources 
        /webapp 
So if I put the file under /resources, when I deploy the application to tomcat the file ends up in: webapps/applicationRoot/WEB-INF/classes/xx.pdf
If I put in webapp/ then it ends up in webapps/applicationRoot/xx.pdf
If I create a folder under webapp like webapp/myResources it ends up in: webapps/applicationRoot/myResources/xx.pdf
The 2nd one looks the prettiest I believe because then in the code I can say:
    InputStream is = servletContext.getResourceAsStream("/re.pdf");
How would I get my pdf file in case 1 in my servlet?
Also, which one is the standart? Which should I use?