title: Include javascript file from inside WEB-INF
body: <p>I am developing a website in struts. My folder structure is as follows :</p>
  
  <p><a href="https://i.stack.imgur.com/RhhOh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RhhOh.png" alt="enter image description here"></a></p>
  
  <p>Now, I have a jsp page register.jsp, in which I want to add jquery.validate.js file. I have followed suggestion from the following link :</p>
  
  <p><a href="https://stackoverflow.com/questions/8391467/can-not-include-javascript-file-from-web-inf-directory-in-jsp">Can not include javascript file from WEB-INF directory in JSP.</a></p>
  
  <p>My code was as follows :</p>
  
  <pre><code>&lt;%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %&gt;
  &lt;%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %&gt;
  &lt;%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  
  &lt;title&gt;Insert title here&lt;/title&gt;
  
  &lt;!-- Latest compiled and minified CSS --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;
  &lt;script src="https://use.fontawesome.com/0c2573c7d6.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"  src='&lt;c:url value="/WEB-INF/scripts/jquery.validate.js"/&gt;'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The above code generated the following html :</p>
  
  <pre><code>&lt;script type="text/javascript"  src='/LoginApp/WEB-INF/scripts/jquery.validate.js'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The jsp file could not access the javascript file jquery.validate.js. How can I access it from my jsp file ?</p>
  
  <p>Regards,
  Tanvir</p>