title: Calling a jsp multiple times from single doPost() method
body: <p>I am using PD4ML libraries for converting my .jsp to pdf files and I need to call the same jsp file for a List of values. 
  I am doing this in my doPost()</p>
  
  <pre><code>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  
      String [] posSelected = request.getParameterValues("selectPOs");
      for(String eachPO: posSelected){
  
      request.getRequestDispatcher("CreateInvoices.jsp").forward(request,response);
  </code></pre>
  
  <p>//This does not work as can not create multiple instances of servlet.
      }}</p>
  
  <p>I get java.lang.IllegalStateException: Cannot forward after response has been committed exception.</p>
  
  <p>How can I invoke same JSP multiple times?</p>
  
  <p>Thanks
  MekaM</p>