日期:2014-05-16 浏览次数:20761 次
var paramUser={'registDO.id':id}; $.getJSON( "http://XXXXXXX:8080/user/user_regist.do?jsoncallback=?", paramUser, function(json){ if(json.flag=='ok'){ ... ... }else{ ... ... } } );
String jsoncallback=Struts2Utils.getParameter("jsoncallback"); PrintWriter out = Struts2Utils.getResponse().getWriter(); out.print(jsoncallback+"({flag:'ok');
Struts2Utils.getResponse().setHeader("P3P","CP=CAO PSA OUR");