remove_receiver.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="java.util.Vector"%>
  3. <%@ page import="com.vnex.intranet.communication.message.value.MessageValueBean" %>
  4. <jsp:useBean id="tmvb" scope="request" class="com.vnex.intranet.communication.message.value.MessageValueBean" />
  5. <jsp:setProperty name="tmvb" property="*" />
  6. <%
  7.     String[] receiverIds = request.getParameterValues("receiverIds");
  8.     if(receiverIds != null)
  9.     {
  10.        Vector vect = (Vector)session.getAttribute("receiver");
  11.        Vector vec = (Vector)vect.clone();
  12.        for(int i=0;i<vect.size();i++)
  13.        {
  14.           MessageValueBean mvb = (MessageValueBean)vect.elementAt(i);
  15.           for(int j=0;j<receiverIds.length;j++)
  16.           {
  17.              int empId = Integer.parseInt(receiverIds[j]);
  18.              if(mvb.getEmpId() == empId)
  19.              {
  20.                  vec.remove(mvb);
  21.              }
  22.           }       
  23.        }
  24.        session.setAttribute("receiver", vec);
  25.     }
  26.     String pageTo = "/vnex/intranet/communication/message/msg_send.jsp";
  27.     if(request.getParameter("pageTo") != null)
  28.     { 
  29.        if(request.getParameter("pageTo").equals("1"))  
  30.          pageTo = "/vnex/intranet/communication/message/msg_sent_detail.jsp";
  31.     }
  32.     String deptId = request.getParameter("deptId");
  33.     String msgId = request.getParameter("msgId");
  34. %>
  35. <input type="hidden" name="deptId" value="<%=deptId%>" >
  36. <input type="hidden" name="msgId" value="<%=msgId%>">
  37. <jsp:forward page="<%=pageTo%>" />