reply_msg.jsp

来自「非常完整的Java开发的网络办公系统」· JSP 代码 · 共 36 行

JSP
36
字号
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.communication.message.value.MessageValueBean"%>

<jsp:useBean id="msgProxy" scope="application" class="com.vnex.intranet.communication.message.proxy.MessageProxyBean" />
<jsp:useBean id="mvb" scope="request" class="com.vnex.intranet.communication.message.value.MessageValueBean" />
<jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />

<jsp:setProperty name="mvb" property="*" />

<%
    mvb.setSenderId(BusinessName.getEmpId());
    mvb.setEmpId(BusinessName.getEmpId());
    String msgTitle = request.getParameter("msgTitle");
    if(msgTitle.indexOf("回复") == -1)
       msgTitle = "回复:"+msgTitle;
    mvb.setMsgTitle(msgTitle);
    mvb.setIsSent(1);
    int[] receiverIds = new int[1];
    receiverIds[0] = Integer.parseInt(request.getParameter("senderId"));
    mvb.setReceiverIds(receiverIds);
    msgProxy.replyMessage(mvb);
%>

<html>
<head>
<script language=javascript>
function forward()
{
	document.location = "/mainctrl/msg/sentHome";
}
</script>
</head>
<body onload="javascript:forward()">
</body>
<html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?