I'm new to spring but not new to MVC. I'm mostly a PHP developer working with Zend Framework. Spring seems a bit different to me that's why I need your help.
It seems that every time I try to call a file (.js/.css/.jpg etc.) located on a public folder under WEB-INF I get 404 error. I'm guessing spring is redirecting everything to the dispatcher. I checked my .xml config files and there's nothing there to that says to redirect everything other than the .html requests.
WEB-INF folder isn't "public" you can't just go access a file directly in that directory. That is not defined by Spring.
So what do you really mean when you say you are trying to access the file. Is it through a jsp page? Or are you trying a direct URL with something like "www.mysite.com/WEB-INF/mypicture.jpg". In the last case you can't do anywhere.
The JSPs under WEB-INF aren't being accessed directly. If you think about it, you'll realize that must be so, since a JSP is Java code has to actually be compiled to a servlet before being executed. Your web app is just set up in such a way that files in WEB-INF/jsp are mapped to /*.jsp URLs. Mark is quite right here -- by definition, the container will not serve files directly from /WEB-INF.
Instead, make your js directory next to WEB-INF -- i.e.,