?? main.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
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>主頁</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>
<jsp:include page="inc/head.html"/>
<%
try
{
String type1=(String)session.getValue("type");
String name=(String)session.getValue("name");
if (Integer.parseInt(type1)<=0) response.sendRedirect("Login.jsp");
out.print("歡迎你"+name);
}
catch(Exception e)
{
response.sendRedirect("Login.jsp");
}
%>
<TABLE class=datagridstyle id=DataGrid1
style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=3
border=0>
<TBODY>
<TR class=datagridhead>
<TD>公告標題</TD>
<TD>發布時間</TD>
<TD>有效期限</TD></TR>
<TR>
<TD>公告1</TD>
<TD>2006-11-14 11:07:32</TD>
<TD>2006-11-26</TD></TR>
<TR class=datagrid1212>
<TD>公告2</TD>
<TD>2006-11-14 09:02:21</TD>
<TD>2006-11-30</TD></TR>
<TR>
<TD>公告3</TD>
<TD>2006-10-20 10:41:01</TD>
<TD>2006-12-31</TD></TR>
</TBODY></TABLE>
<br>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -