JS/ CSS files not found due to path differences java, spring mvc, velocity
I have this directory structure: webapp - resources - custom.js - base.css - WEB-INF - views - layout.vm - top.vm - footer.vm - index.vm - FolderA - restricted.vm My layout.vm is: #parse('top.vm') $screen_content #parse('footer.vm') My top.vm consists include these JS and CSS files: <link href="resources/base.css" rel="stylesheet"> <script src="resources/custom.js"></script> Now when my I access http://www.example.com:8080/index page, I see the JS and CSS files getting found. But when I visit http://www.example.com:8080/FolderA/restricted , JS and CSS files are not found. It works when in top