Atitit.Dwr抛出异常error解决方案
1.Dwr3的处理机制..setErrorHandler 1
3.林吧,子好java处理,返回空的....走ok兰... 2
1.Dwr3的处理机制..setErrorHandler
functionerrh(errorString,exception){
// alert(errorString);
// alert(JSON.stringify(exception));
eval(dwrxO9).getErr( function(data){
alert(data);
window.open("<%=path%>/com.attilax/util/dwrerr.jsp");
});
}
dwr.engine.setErrorHandler(errh);
作者::老哇的爪子Attilax艾龙,EMAIL:1466519819@qq.com
转载请注明来源:http://blog.csdn.net/attilax
2.remoteMtehtrycatch
try{
playwaterX.findByPropertyss_page_count(mp,function(data){
//alert("保存成功");
bindTableData(data.rows);
setPageInfo({"total":data.total,"pageSize":10});
});
}catch(e)
{
logx(e);
}
3.林吧,返回空的....走ok兰...
returnPageX.getEmptyPageData_EasyuiFmt();
publicstaticMapgetEmptyPageData_EasyuiFmt(){
Mapmp=newHashMap();
mp.put("total",0);
mp.put("rows",newArrayList());
returnmp;
}
原文链接:https://www.f2er.com/ajax/164112.html