title: foward on button click doesn't work
body: <p>i want to foward or redirect a page after a $.ajax call</p>
  
  <pre><code>$(document).ready(function(){
  $('#submit').on('click', function(){
  
      var params = "";
      $('#tableResultat &gt; tbody &gt; tr').each(function(){
          $parent = $(this);
          params += $parent.find('td:eq(0)').attr('id') + ","  + $parent.find('td:eq(0)').text() + "," +  $parent.find('td:eq(1)').text() + ","  + $parent.find('td:eq(2)').text() +','+ $parent.find('td:eq(3)').text() +"|";
      });
  
  $.ajax({
      type: 'POST',
      url: '/resultat',
      data:{
              parametres : params
          }
  }); 
  });
  });
  </code></pre>
  
  <p>and on my server side i have this :</p>
  
  <pre><code>protected void doPost(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException 
  {
       String action = req.getServletPath();
       if(action.equals("/resultat"))
       {
           String params = req.getParameter("parametres");
          //save these value in DB 
           req.getRequestDispatcher("WEB-INF/vues/resultat.jsp").forward(req, resp);
           return;
       }   
  }
  </code></pre>
  
  <p>I don't understand why when i click on my button it doesn't forward me to the resultat.jsp page ? what am i doing wrong ?</p>
  
  <p>thanks for your awsers</p>