title: How to forward from servlet to another servlet located in separate package?
body: <p>I am unable to <code>forward</code> the request to another servlet which is present inside different package.</p>
  
  <p>Here's the effective <strong>code of sender's servlet:</strong></p>
  
  <pre><code>RequestDispatcher rDispatcher=request.getRequestDispatcher("/RecieverServlet");
  rDispatcher.forward(request, response);
  </code></pre>
  
  <p>Here's the <strong>directory structure:</strong></p>
  
  <pre><code>Source Packages --&gt; servlets.senderServ.SenderServlet.java
  Source Packages --&gt; servlets.a.b.RecieverServlet.java
  
  //a and senderserv are subpackages of servlet package
  //b is subpackage of a package
  </code></pre>
  
  <p>The url: <code>/RecieverServlet</code> is not working and i am getting <code>HTTP Status 404 - Not Found</code> error.</p>