title: dispatcher.forward() produces HTTP 500
body: <p>Consider the hierarchy : </p>
  
  <p><img src="https://i.stack.imgur.com/aG2Yu.gif" alt="enter image description here"></p>
  
  <p>I moved my JSPs from <code>WEB-INF</code> to the <code>src</code> folder .However when I try to <code>dispatcher.forward()</code> , I get : </p>
  
  <pre><code>HTTP Status 500 -
  
  type Exception report
  
  message
  
  description The server encountered an internal error that prevented it from fulfilling this request.
  
  exception
  
  java.lang.NullPointerException
      controller.LoginPage.doPost(LoginPage.java:214)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  note The full stack trace of the root cause is available in the Apache Tomcat/7.0.50 logs.
  
  Apache Tomcat/7.0.50
  </code></pre>
  
  <p>The specified exception occurs in the lines : </p>
  
  <pre><code> String addressPath = "/../view/admin/adminPage.jsp";
   RequestDispatcher dispatcher = request.getRequestDispatcher(addressPath);
   dispatcher.forward(request, response);
  </code></pre>
  
  <p>How can I fix the path ?</p>
  
  <p>Thanks</p>