// 分页数量 @Action( value = "count_examroom", results = { @Result( type = "json", name = "success", params = {"contentType", "text/json"}) }) public String count() { try { result.setRecordCount(examroombiz.findExamRoomPageCount(examroom, result)); } catch (Exception e) { e.printStackTrace(); } return SUCCESS; }
// 分页结果 @Action( value = "findByconditions_examroom", results = { @Result( type = "json", name = "success", params = {"contentType", "text/json"}) }) public String execute() { try { result.setList(examroombiz.findByConditions(examroom, result)); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return "success"; }