?? depcontent.jsp
字號(hào):
<%--這個(gè)頁面是用來顯示每個(gè)員工的內(nèi)容的--%>
<%@ page language="java" import="java.util.*,java.sql.*" pageEncoding="gb2312"%>
<%@page import="oabean.myWorkBean"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'depcontent.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%
String u=(String)session.getAttribute("user");
if(u==null) {response.sendRedirect("../index.jsp");}
String username=(String)session.getAttribute("manager");
if(username==null) {response.sendRedirect("../index.jsp");}
oabean.database db=new oabean.database();
oabean.myWorkBean my=new oabean.myWorkBean();
String pid1=request.getParameter("pid");
int pid=Integer.parseInt(pid1);
my.setPlanId(pid);
try
{
String sql="select * from oa_myWork where planId='"+pid+"'";
ResultSet rs=null;
rs=db.executeQuery(sql);
while(rs.next())
{
my.setContent(rs.getString("content"));
}
}
catch(Exception e){}
//System.out.print(nb.getContent());
%>
<%=my.getContent()%>
<br>
<br>
<center>
<a href="admin/workerplan.jsp" style="text-decoration:none"><<Back</a>
</center>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -