title: Can we process a form with Symfony2 without redirect to another url at the end?
body: <p>I have problem with processing the data on a form in two tables with Ajax for not updating screen. Sumfony2 redirects to process the data to a url in the end, as you can see in the following code:     </p>
  
  <pre><code>public function createAction(Request $request)
   {
      $entity = new Users();
      $form = $this-&gt;createCreateForm($entity);
      $form-&gt;handleRequest($request);
  
         if ($form-&gt;isValid()) {
  
          $em = $this-&gt;getDoctrine()-&gt;getManager();
          $em-&gt;persist($entity);
          $em-&gt;flush();
  
  
      return $this-&gt;redirect($this-&gt;generateUrl('users_new'));
       }
  
      return $this-&gt;render('BackendBundle:Userss:new.html.twig', array(
          'entity' =&gt; $entity,
          'form'   =&gt; $form-&gt;createView(),
      ));
  }
  </code></pre>
  
  <p>ajax call:</p>
  
  <pre><code>$('.form_student').submit(function(event) {
  event.preventDefault();
  
  $.ajax({
  type: 'POST',
  url: Routing.generate('student_create'),
  data: $(this).serialize(),
  
  success: function(response) {
  
   alert(response.result);
  
    },
   error: function (xhr, desc, err){
  
   alert("error");
  }
  })
  return false;
  });
  </code></pre>
  
  <p>Is there any way that does not forward it to any URL and can use Ajax to load anything in that window?</p>