action:
public String findusergroupyname(){
集合 = 方法(字段值);
if(this.usergrouplst!=null&&this.usergrouplst.size()>0){
try {
PrintWriter pw = ServletActionContext.getResponse().getWriter();
pw.write("1");
pw.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return null;
}
jsp頁面: