title: Request Dispatcher causing $.get of jQuery to alert the text of the page
body: <p>for example :</p>
  
  <p>i have a js like : </p>
  
  <pre><code>$.get('Test_Controller.html',function(response){ 
     alert(response);
  });
  </code></pre>
  
  <p>and in my <code>Test_Controller.html</code> servlet i have :</p>
  
  <pre><code>    request.setAttribute("test","testData");
      RequestDispatcher requestDispatcher =
      request.getRequestDispatcher("/test.jsp");
      requestDispatcher.forward(request,response);
  </code></pre>
  
  <p>Question is : </p>
  
  <p>why is that the <code>response</code> will always alert the text content of the <code>test.jsp</code> and not the <code>JSON</code> that i passed through the <code>getWriter()</code></p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>I need to get the : </p>
  
  <pre><code>  TestData testData = new TestData();
       request.setAttribute("test",testData);
  </code></pre>
  
  <p>using jQuery's $.get() so the page won't reload, but unfortunately when i didn't do dispatch my response object seems to be null and when i do dispatch and forward, when i alert the response it alerts the text of the page.</p>