永发信息网

页面发送请求给一个Action,执行完以后执行另一个Action,返回另一个Action的结果

答案:2  悬赏:30  手机版
解决时间 2021-03-10 06:30
  • 提问者网友:一抹荒凉废墟
  • 2021-03-09 10:18
@SuppressWarnings({"rawtypes", "unchecked" })
public String findFileRecordList(){

HttpServletRequest request = ServletActionContext.getRequest();
int pages = Integer.valueOf(request.getParameter("page"));
int rp = Integer.valueOf(request.getParameter("rp"));
List fileRecord = iFileTransfer.getFileRecordList(pages, rp);
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返回结果正常,求解~~~
最佳答案
  • 五星知识达人网友:你哪知我潦倒为你
  • 2021-03-09 10:42
//1.直接使用iterator即可
//输出: m.find 8
cout << "m.find " << (*ite).second << endl;;
}
ite = m.lower_bound(3);
if(ite != m.end())
{
//输出 m.lower_bound key 5 m.lower_bound 11
cout << "m.lower_bound key " << (*ite).first << " m.lower_bound " << (*ite).second << endl;
}
全部回答
  • 1楼网友:酒醒三更
  • 2021-03-09 11:08
支持一下感觉挺不错的
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯