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