Hi,
I'm coming across a problem when using Spring Security with JavaScript or CSS files.
I have a project I am building with Maven and have the following structure:
/static
/jsapp
/login.jsp
/index.jsp
I use the standard login from spring security and that works fine. The problem occurs when index.jsp loads and pulls in a JS file from the /jsapp folder. The file appears to have the content of the index.jsp instead of it's actual content.
Now, if I move the /jsapp to sit under /static, it works perfectly!
Is there a requirement for all JS files (and similar) to sit under the /static folder? If so, is there a way around this? Can I store JS files in a folder which is not the /static one?
Thanks,
Ale


Reply With Quote