var corpId = rows[0].corpcode;
$.ajax({
type:"post",
url:"getCbSysUser.action",
date:{'corpId':corpId},
dataType:'json',
success:function(json){
public void getCb(String corpId) throws IOException{
System.out.print("====================================================");
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("text/html;charset=utf-8");
PrintWriter out = response.getWriter();
System.out.print(corpId);
List<Object> users = (List)sysUserService.getListByHql("from SysUser where LENGTH(userName)<7 and find_in_set (${corpId},corpId)>0");
String json="";
json +="[";
for (int i =0;i<users.size();i++) {
SysUser user = (SysUser)users.get(i);
if(i==users.size()-1) {
json+="{\"u_realname\":\""+user.getUserRealName()+"\",\"userName\":\""+user.getUserName()+"\"}";
}else {
json+="{\"u_realname\":\""+user.getUserRealName()+"\",\"userName\":\""+user.getUserName()+"\"},";
}
}
json+="]";
Json json1 = new Json();
json1.writeJson(json);
//System.out.print(json);
out.flush();
out.close();
}