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>