WEB-INF does not need to host javascript files. In your WAR file, you can have the following structure:
.
js/
images/
WEB-INF/
WEB-INF/jsp
Jsp files in the WEB-INF \ jsp section are usually displayed in the main application context, so the following will work
<script type="text/javascript" src="js/foo.js">
WEB-INF, . , - JSP include:
<%@include file='js/foo.js'%>
html. javascript, .