I started using java for web apps a few months ago and i still have much to learn. I have one simple question to which i found no answer on the internet.
We all know the directory structure of a webapp
Files in the root directory are available via HTTP to the end user. But it would be such a mess to put DOZENS of images and other stuff just in one directory!
Thank you in advance.
Joined: Sep 21, 2011
You can create directories in the root directory as you please: /images, /css, /js, ... They will all be publicly accessible.
Joined: Nov 17, 2011
And what about making them inaccessible for end user? What's the best practice? CHMOD them, configure some XML on the server or placing them in WEB-INF/...?