title: Servlets and JSPs. A simple request?
body: <p>I have a number of Java Server Pages set up already and I would like to use a Controller/View system by adding a Process Servlet (which extends HttpServlet).</p>
  
  <p>I just want to basically process the requested JSPs as normal after the ProcessServlet has added some attributes.</p>
  
  <p>Say all my JSPs are in a directory called /content/ and my web.xml file has a rule to map /content/*.jsp to my ProcessServlet</p>
  
  <p>I have not been able to find a way short of moving all of my JSPs into a different directory (/content-JSPs/) so that they can be dispatched to without having to go through the ProcessServlet endlessly.</p>
  
  <p>Is there a way to basically dispatch#forward() (some other method?) to the requested JSP without having it go through the ProcessServlet again?</p>
  
  <p>It's a bit hard to believe that this lack of flexibility exists. Why can't the Servlet just act as a pass through to the JSP?</p>
  
  <p>My goal here is to set everything up so that the web server does not have to have a separate directory for all JSPs and another directory for everything else i.e. CSS, JavaScript and images. I would like to keep the directory structure (and URL structure) as it is.</p>