I deployed my ROOT.war to Tomcat webapps folder. When I'm writing in a web browser address www.exampleaddress.com I can see index.jsp file.
But in the same folder is file.js. I Would like to see it when I write address: www.exampleaddress.com/file.js but now i can see only empty white page without any code. Any ideas?
You can't place JS files or any publicly accessible data inside the WEB-INF folder. You need a JS folder in the same directory as your WEB-INF folder and that is where you place them. The same goes for your .css files and your images. None of that can be seen from inside WEB-INF.
/WebApp/CSS/index.css
/WebApp/JS/index.js
/WebApp/WEB-INF/index.jsp
/WebApp/Images/logo.png
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.