title: My jsp file doesn't find my javascript file
body: <p>my jsp file doesn't find my javascript file. here you can see my jsp file :</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="ressources/js/addMatrix.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div ng-app="App" ng-controller="MainCtrl"&gt;
          &lt;p&gt;Add a new element : &lt;/p&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td data-ng-repeat="data in texts"&gt;
                      &lt;button&gt;{{data.text}}&lt;/button&gt;
                  &lt;/td&gt;
                  &lt;td data-ng-repeat="field in fields"&gt;
                      &lt;form ng-submit="submit(text)"&gt;
                          &lt;input type="text" ng-model="text" name="text"
                              placeholder="New Category" /&gt;
                      &lt;/form&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;button ng-click="addNewChoice()"&gt;+&lt;/button&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My javascript file is in the folder /WebContent/ressources/js and the jsp file is in the folder /WebContent.</p>
  
  <p>My servlet only contains this call in the get method: </p>
  
  <pre><code>this.getServletContext().getRequestDispatcher("/index.jsp").forward(req, resp);
  </code></pre>
  
  <p>and my web.xml file looks like this :</p>
  
  <pre><code> &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
   &lt;servlet&gt;
      &lt;servlet-name&gt;Home&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.pi.servlets.Index&lt;/servlet-class&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Home&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>waiting for your help.Thanks</p>