title: How do file paths work in a Dynamic Web Application in Java and Eclipse?
body: <p>I am building a Dynamic web application in Eclipse.</p>
  
  <p>In my <code>Login.java</code> servlet, I want the <code>doGet()</code> method to perform some logic (i.e. check if the user is already logged in) and open the page <code>login.jsp</code> located in the <code>webapp</code> folder, as seen in the image. </p>
  
  <p>I've tried variations of</p>
  
  <pre><code>request.getRequestDispatcher("/src/main/webapp/login.jsp").forward(request, response);
  </code></pre>
  
  <p>but I keep getting 404 errors that <code>The requested resource is not available.</code>.</p>
  
  <p>How do I determine the proper path that the system wants in order to display this page?</p>
  
  <p><img src="https://i.stack.imgur.com/NLCJv.jpg" alt="Project Structure"></p>