I have a project structure which looks like this
main
/ \
/ \
conf wwwroot
/ \
/ \
header.jsp assets
\
\
js
\
\
jquery.js
I need to include the jquery.js file in my header.jsp. I have tried
<script type="text/javascript" src="../wwwroot/assets/js/jquery.js"></script>
as suggested by some StackOverflow posts. However, this does not work. I cannot change the location of jquery.js as it is being used in several files within the "wwwroot" directory. Any help would be appreciated. Thank you.
UPDATE:
So the problem was that there was some internal routing happening inside the server which kept redirecting the requests. So, essentially, the script tag was looking in the wrong place.