remove_receiver.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.util.Vector"%>
- <%@ page import="com.vnex.intranet.communication.message.value.MessageValueBean" %>
- <jsp:useBean id="tmvb" scope="request" class="com.vnex.intranet.communication.message.value.MessageValueBean" />
- <jsp:setProperty name="tmvb" property="*" />
- <%
- String[] receiverIds = request.getParameterValues("receiverIds");
- if(receiverIds != null)
- {
- Vector vect = (Vector)session.getAttribute("receiver");
- Vector vec = (Vector)vect.clone();
- for(int i=0;i<vect.size();i++)
- {
- MessageValueBean mvb = (MessageValueBean)vect.elementAt(i);
- for(int j=0;j<receiverIds.length;j++)
- {
- int empId = Integer.parseInt(receiverIds[j]);
- if(mvb.getEmpId() == empId)
- {
- vec.remove(mvb);
- }
- }
- }
- session.setAttribute("receiver", vec);
- }
- String pageTo = "/vnex/intranet/communication/message/msg_send.jsp";
- if(request.getParameter("pageTo") != null)
- {
- if(request.getParameter("pageTo").equals("1"))
- pageTo = "/vnex/intranet/communication/message/msg_sent_detail.jsp";
- }
- String deptId = request.getParameter("deptId");
- String msgId = request.getParameter("msgId");
- %>
- <input type="hidden" name="deptId" value="<%=deptId%>" >
- <input type="hidden" name="msgId" value="<%=msgId%>">
- <jsp:forward page="<%=pageTo%>" />