永发信息网

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

答案:2  悬赏:30  手机版
解决时间 2021-03-10 06:30
@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返回结果正常,求解~~~
最佳答案
//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;
}
全部回答
支持一下感觉挺不错的
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
粘毛滚筒粘性不好怎么办
福森宾馆我想知道这个在什么地方
青岛学育婴师哪家好
设随机变量(X ,Y)的密度函数为f(x,y)8xy 0
华为mate9怎么样避免
《鸟奴》灰夫妻的读后感
世界10大潜水胜地是那些?
索尼相机为什么照人脸的时候自动截图?
【关于美食的句子】关于美食的诗句最好和肉类
蛟龙聪慧贝贝幼稚园我想知道这个在什么地方
lol怎样在团战中避免A人却点到地板的尴尬
谍变1939 李茹萍是谁
我老婆刚刚生气时又笑又哭怎么回事,从来没有
女生能接受我这样皮肤黑的男生吗?(有图片)
网站开发用哪种语言更安全?
推荐资讯
广州市公安局海珠区分局出入境接待大厅地址在
业务员主要做什么呢?
英语专四考试是什么
农行存折怎样使用呢 如何查询余额
有太阳能打火机吗
老硬盘500G,新硬盘1T,资料能不能对拷?
现在生活和以前生活的对比事例
图示某些生物学概念间的关系,其中I代表整个
惠普笔记本WiFi不显示,
工资条可以作为证据使用吗
驾驶证科目2考试激动腿抖怎么办
联合国安理会11月20日举行安全会议,就索马里
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?