如何使用ajax和struts刷新jsp页面的一部分?
我想从服务器重新加载数据表而不刷新它。如何使用tsruts2和ajax实现它。请提供帮助。看一看可能对您有帮助的方法。 有了它,您可以与Struts2 json插件一起动态构建 基于AJAX的表 样本:如何使用ajax和struts刷新jsp页面的一部分?,ajax,struts2,Ajax,Struts2,我想从服务器重新加载数据表而不刷新它。如何使用tsruts2和ajax实现它。请提供帮助。看一看可能对您有帮助的方法。 有了它,您可以与Struts2 json插件一起动态构建 基于AJAX的表 样本: <s:url id="remoteurl" action="jsontable"/> <sjg:grid id="gridtable" caption="Customer Examples" dataType="json" href="
<s:url id="remoteurl" action="jsontable"/>
<sjg:grid
id="gridtable"
caption="Customer Examples"
dataType="json"
href="%{remoteurl}"
pager="true"
gridModel="gridModel"
rowList="10,15,20"
rowNum="15"
rownumbers="true"
>
<sjg:gridColumn name="id" index="id" title="ID" formatter="integer" sortable="false"/>
<sjg:gridColumn name="name" index="name" title="Name" sortable="true"/>
<sjg:gridColumn name="country" index="country" title="Country" sortable="false"/>
<sjg:gridColumn name="city" index="city" title="City" sortable="false"/>
<sjg:gridColumn name="creditLimit" index="creditLimit" title="Credit Limit" formatter="currency" sortable="false"/>
</sjg:grid>