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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.communication.message.value.MessageValueBean"%>
  3. <jsp:useBean id="msgProxy" scope="application" class="com.vnex.intranet.communication.message.proxy.MessageProxyBean" />
  4. <jsp:useBean id="mvb" scope="request" class="com.vnex.intranet.communication.message.value.MessageValueBean" />
  5. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  6. <jsp:setProperty name="mvb" property="*" />
  7. <%
  8.     mvb.setSenderId(BusinessName.getEmpId());
  9.     mvb.setEmpId(BusinessName.getEmpId());
  10.     String msgTitle = request.getParameter("msgTitle");
  11.     if(msgTitle.indexOf("回复") == -1)
  12.        msgTitle = "回复:"+msgTitle;
  13.     mvb.setMsgTitle(msgTitle);
  14.     mvb.setIsSent(1);
  15.     int[] receiverIds = new int[1];
  16.     receiverIds[0] = Integer.parseInt(request.getParameter("senderId"));
  17.     mvb.setReceiverIds(receiverIds);
  18.     msgProxy.replyMessage(mvb);
  19. %>
  20. <html>
  21. <head>
  22. <script language=javascript>
  23. function forward()
  24. {
  25. document.location = "/mainctrl/msg/sentHome";
  26. }
  27. </script>
  28. </head>
  29. <body onload="javascript:forward()">
  30. </body>
  31. <html>