效果:
实现目的:1.左上角显示成功登陆的登录账户名
2.可以选择学生功能以及公布成绩
3.左下角的注销可以回到登录界面
代码:teacher.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
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 'control.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 bgcolor="#FFFFF0">
<% String e;
e=(String)session.getAttribute("id");%>
<p><font color="#FF6347" size="6" face="华文行楷"><% out.print(e); %>您已经成功通过验证!!您可以使用如下功能:</font></p>
<br><br>
<p><center><a href="">挑选您的学生 |</a><a href="">公布成绩</a></center></
<br><br>
<p><a href="login.jsp"> << 注销 </a></p>
<br><br>
<p><center><font color="#99FF33" size="2" >版权所有©:<a href="names.jsp">个人信息</a></font></center></p>
</body>
</html>