This may sound like a dumb question.
I received a (basic) web application developed by another person, using HTML and JavaScript. In this application he used his JavaScript file path as /javascripts/_FileName_.js
. But when I tried to run it on a Tomcat (8.5) server, those JavaScript files didn't executed. But when I changed the path to javascripts/_FileName_.js
(Without the /
at the beginning), it worked fine.
This application was already ran in a server and it worked fine. What has to be the problem here ?