从后台action往前台ExtJS传值

前台js:

.

.

.

success : function(response, options){

dataStore.reload();

var result = response.responseText;

if(result == 0){

AppUtil.floatingInfo('添加成功!');

}else{

AppUtil.floatingInfo('添加成功!<br/>其中有 ' + result + ' 个企业已经添加过了!');

}

}

 

 

后台Action:

 

public void addCompanyCt(){

.

.

.

int count = this.getCompanyCtService().insertCompanyCt(companyId, ctCompanyIds);

super.renderText(count+"");

}

 

 

 

后台ServiceImpl:

public int insertCompanyCt(Long companyId, List ctCompanyIds) {

.

.

.

int count = 0;

count++;

return count;

}

 

你可能感兴趣的:(action,ExtJs,后台,传值,前台)