bulletin_search_result.jsp

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

JSP
32
字号

<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
<jsp:useBean id="cu" scope="request" class="com.vnex.intranet.communication.util.CommunicationUtil" />

<%
    String pageTo = "/mainctrl/bulletin/home";
    String searchCondition = "";
    int deptId = Integer.parseInt(request.getParameter("deptId"));
    if(deptId != BusinessName.getDeptId())
    {
       pageTo = "/mainctrl/bulletin/otherBulletinList";
    }
    if(deptId == 0)
       searchCondition = "查看全部公告";
    else
       searchCondition = "查看"+cu.selectDeptName(dept)+"公告";
%>

<html>
<head>
<script language=javascript>
function forward()
{
	document.location = "<%=pageTo%>?deptId="<%=deptId%>&searchCondition=<%=searchCondition%>";
}
</script>
</head>
<body onload="javascript:forward()">
</body>
<html>

⌨️ 快捷键说明

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