public String findFileRecordList(){
HttpServletRequest request = ServletActionContext.getRequest();
int pages = Integer.valueOf(request.getParameter("page"));
int rp = Integer.valueOf(request.getParameter("rp"));
List
this.rows = fileRecord;
this.page = pages;
this.total = iFileTransfer.getFileRecordTotle();
return SUCCESS;
}
@SuppressWarnings({"rawtypes", "unchecked" })
public String getUpLoadDeptCheckBox(){
return null;
}
@SuppressWarnings({"rawtypes", "unchecked" })
public String getIssuedDeptCheckBox(){
Map staffMap = ActionContext.getContext().getSession();
Integer staffId = 1606;//(Integer)staffMap.get("staffId");
String issuedDeftList = iFileTransfer.getIssuedDeptsName(staffId);
HttpServletResponse response = ServletActionContext.getResponse();
PrintWriter pw = null;
try {
response.setCharacterEncoding("utf-8");
response.setContentType("text/json");
pw = response.getWriter();
pw.write(issuedDeftList);
pw.flush();
pw.close();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
findFileRecordList执行完后自动执行getIssuedDeptCheckBox,返回的结果不是我想要的,如果注释掉getIssuedDeptCheckBox返回结果正常,求解~~~