`
wktong
  • 浏览: 54315 次
社区版块
存档分类
最新评论

从后台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;

}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics