load parts of a JSON in many divs + Struts2
You should build the URL like
<s:url var="remoteurl1" action="name"><s:param name="div1" value="true"/></s:url><sj:div id="div1" href="%{#remoteurl1}" dataType = "json"/><s:url var="remoteurl2" action="name"><s:param name="div2" value="true"/></s:url><sj:div id="div2" href="%{#remoteurl2}" dataType = "json"/>
Then in your action you check if isDiv1()
or isDiv2()
and return corresponding result.