title: How to get a list of objects in jQuery from s:hidden tag in Struts 2
body: <p>What's the best way to send a list of objects from a <strong>Struts 2</strong> action  to JavaScript?</p>
  
  <p>I'm trying to send data this way but it just doesn't work</p>
  
  <pre><code>Action &gt;&gt;&gt; JSP : &lt;s:hidden&gt;  &gt;&gt;&gt; Javascript
  
  &lt;s:hidden id="listObj" value="%{objects}" /&gt;
  </code></pre>
  
  <p>This line get me object names array as a string:</p>
  
  <pre><code>$('#listObj').val()
  </code></pre>
  
  <p>Thanks</p>