title: No display sucess page after call ajax during form submit
body: <p>I'm working with struts2 and I have a form and I want to get all values in a JSON array.</p>
  
  <p>To get this JSON array I made a JavaScript snippet to convert the form in JSON and send it to a Struts action during the submit event:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          jQuery("#advanced-search").submit(function(e){
              var formInput=jQuery(this).serializeJSON({parseBooleans: true,parseNulls: true});
              jQuery.ajax({
                  type: "POST",
                  url: "&lt;s:url action='searchJSON'/&gt;",
                  data: "jsonForm="+JSON.stringify(formInput),
                  dataType: "json"
              });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>My form action is implemented like :</p>
  
  <pre><code>&lt;form action="javascript:void(0);" id="advanced-search" method="post"&gt;
  ...
  &lt;/form&gt;
  </code></pre>
  
  <p>The action is called and I can use my JSON array. The next step is to display the result to another page like search => result page. So the result of my action is a tiles (jsp):</p>
  
  <pre><code>&lt;action name="search" class="searchAction" method="search"&gt;     
      &lt;result name="success" type="tiles"&gt;results&lt;/result&gt;
      &lt;result name="error" type="tiles"&gt;error&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>Java code:</p>
  
  <pre><code>public String search() {
      JSONObject jObj = (JSONObject) new JSONTokener(jsonForm).nextValue();
      ....
      return SUCCESS;
  }
  </code></pre>
  
  <p>The problem is here... my form is submitted and my action is called with a good JSON array, but the success result doesn't display the jsp.. in the browser, the page is still the form.</p>
  
  <p>Anyone has an idea of why the redirect to the result page is not done ? </p>
  
  <p>Is it a good way to have the form submitted as a JSON array?</p>