![]() |
#2
hhwz2013-03-16 13:39
|
这是我的JS
$("#uuu").click(function(){
var putin = $("#clientid").serializeArray();
$.ajax({
url : "creditApplyInsertAjaxAction",type : "post",dataType:"json",data : putin,timeout : 20000,// 设置请求超时时间(毫秒)。
beforeSend: function(XMLHttpRequest){
alert("uuu");
},
success : function(data) {
alert("aaa");
alert(data);
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest.status);
alert(XMLHttpRequest.readyState);
alert(textStatus);
}
})
这是我的action
public String execute() {
customP = this.custom2.showP(clientid);
customInfor = new Gson().toJson(customP);
return "success";
}
这是我的配置文件
/WEB-INF/content/credit/creditApplyInsert.jsp
customInfor
customP
但是我得到的值栈中的信息全部是NULL,我想得到的是customInfor或者是customP,请问我该怎么