tomcat - Access folder outside of webapp -


i having hard time trying configure apache tomcat 8 access folder stand outside of webapp. tried multiple things including context server.xml , learned isn't correct way because docbase refers location of web application.

i tried adding / project properties > web project settings: contect root. have node_modules folder @ root level of project. 404 error on script tags trying access folder.

<script src="node_modules/core-js/client/shim.min.js"></script> 

since js file outside webapp, there solution, use absolute path.

by ways, maybe put js file inside webapp, this:

<script src="${pagecontext.request.contextpath}/node_modules/core-js/client/shim.min.js"></script> 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo