easyui+struts+jsonp easyui向struts发送jsonp请求 easyui跨域请求struts

1.页面的代码:




2.struts 的代码:

//..........

private String callback;

public String getCallback() {
return callback;
}

public void setCallback(String callback) {
this.callback = callback;
}

private Object resultObj;

public Object getResultObj() {
return resultObj;
}

public void setResultObj(Object resultObj) {
this.resultObj = resultObj;
}

public String listJson(){
//..........
resultObj = moduleList;
return SUCCESS;
}

//.........

3.struts配置文件的代码

resultObj callback

发表评论