[Solved] javascript file not loading

Provided that webcontent is the root of public web content and thus /mydomain is also a public folder and thus your JavaScript is standalone available by http://localhost:8080/context/mydomain/test/scripts/test.js, assuming a domain of http://localhost:8080 and a context path of /context, then the following should do: <script src=”#{request.contextPath}/mydomain/test/scripts/test.js”></script> This will generate a domain-relative URL with a dynamically inlined … Read more