正常情况下 action 中 类 由于 hibernate 要单独分拆 不能嵌套其他类
-------------------------------------------------------------------------------------页面js
function checkInfo(){
$.ajax({
url:"../svcOrder/verifiTermi.action",
data: $('#saform').serialize(),
contentType: "application/json; charset=GBK",
success: function(returnData){
if(returnData!='[]')
{
var cc= returnData.substr(1, returnData.length-2);
var obj = eval('(' + cc + ')');
if(obj.flagReason=='1')
{
if(confirm('无卡应用信息,请确认是否继续!'))
{
$("#hcarapp").val("hcarapp");
//$.blockUI({ message: "<img src='../newcss/images/tree_loading.gif'/> 正在核对,请稍候..." });
widOpen5();
}
}else{
alert(obj.flagReason);
}
}else{
///$.blockUI({ message: "<img src='../newcss/images/tree_loading.gif'/> 正在核对,请稍候..." });
widOpen5();
}
},
error: function(returnData){
$.messager.alert('提示','return data error');
}
});
}
-----------------------------------------------------------------------------后天java
String[] shopNumber = this.getHttpRequest().getParameterValues("shopNumber");
JSONArray ja = JSONArray.fromObject(list);
getHttpResponse().setContentType("text/html;charset=UTF-8");
getHttpResponse().getWriter().print(ja.toString());
-----------------------------------------------------------------------------stru2.xml
<!--验证商终号-->
<action name="verifiTermi"
class="com.sand.action.svcOrder.MaintenanceAuditAction"
method="verifiTermi">
<result name="success" type="StringStream" />
</action>