综合开发
用java实现的登录页面,实现了客户端(浏览器)到服务器(Tomcat)再到后端(servlet程序)数据的交互。
添加页面代码(adminmain.html):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MyDisk</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">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link rel="stylesheet" type="text/css" href="<c:url value='/jsps/css/main.css'/>">
<script type="text/javascript">
//跳出框架显示该页面
if (window != top)
top.location.href = location.href;
</script>
</head>
<body>
<table class="table" align="center">
<tr class="trTop">
<td colspan="2" class="tdTop">
<iframe frameborder="0" src="<c:url value='/jsps/admin/top.jsp'/>" name="top"></iframe>
</td>
</tr>
<tr>
<td class="tdLeft">
<iframe frameborder="0" src="<c:url value='/jsps/admin/left.jsp'/>" name="left"></iframe>
</td>
<td style="border-top-width: 0px;">
<iframe frameborder="0" src="<c:url value='/admin/AdminServlet?method=overView'/>" name="body"></iframe>
</td>
</tr>
</table>
</body>
</html>