1

我有带有提交按钮的弹出窗口。它不应该转到另一个页面或关闭,所以我需要 ajax 提交。我正在使用 struts2-jquery-plugin 作为标签。但它转发到另一个页面。如何通过单击按钮从动作类中获取数据数组?

这个弹出页面按钮需要与action类交互来获取数据并显示在datatable中。

我有JSONArray数据在行动,但我需要将它们配置为 aaData: in datatable.How to get the data in datatable ?

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
 <head>
<sj:head/>
</head>
<body>
 <sj:dialog autoOpen="false" id="popup" modal="true" height="500"  width="700">
 <s:form id="form" action="">
  <input type="textbox" name="data">   
  <sj:submit value="submit form" targets="result" ></sj:submit>
 </s:form>
 </sj:dialog>
 <sj:a href="#" openDialog="popup" >Open Dialog</sj:a>
</body>

请指教...

4

0 回答 0