title: How to use ajax response list as struts2 iterator value?
body: <p>I am using following ajax function :</p>
  
  <pre><code> $.ajax({
         url: "userhomeonload",
         contentType: 'application/json',
         type: 'POST',
        datatype:'json', 
         async: true,
         success: function (res) {
                   alert(res[i].name+" "+res[i].rollNo);
      }  });
  </code></pre>
  
  <p>I am getting correct result in alert box.
  Now I want to use the list returned by this ajax in struts iterator as follows :</p>
  
  <pre><code>&lt;s:iterator value="list"&gt;
     &lt;div&gt;
       &lt;s:property value='name'&gt;&lt;/s:property&gt;
       &lt;s:property value="rollNo"&gt;&lt;/s:property&gt;
     &lt;/div&gt;
  &lt;/s:iterator&gt; 
  </code></pre>
  
  <p>But nothing is getting displayed on screen. Can anyone tell me how can I do so?</p>