title: Making a Servlet reload the page it was called from
body: <p>I have written a Servlet which completes a task and I want it to then reload the JSP that originally called the Servlet. The servlet runs of an <code>enctype='multipart/form-data'</code> JSP, this JSP is called Uploadtest, everytime I try to run either of the following code I get <code>The requested resource (/project_name/WebContent/jsps/new.jsp) is not available</code>.</p>
  
  <p>I have tried:</p>
  
  <pre><code>response.sendRedirect("/WebContent/jsp/Uploadtest.jsp");
  </code></pre>
  
  <p>and </p>
  
  <pre><code>getServletContext().getRequestDispatcher("/WebContent/jsps/Uploadtest.jsp").forward   (request, response); 
  </code></pre>
  
  <p>However both of these have produced an error saying it can't find the page I am looking for.</p>
  
  <p>I am looking for any ideas on how I might fix this?</p>
  
  <p>Thank you</p>