实现效果:
实现目的:
1.在登录界面登入后,可以接受到登录的账户名
2.三个功能选项
3.左下角的注销选项
4.个人信息版权的超链接
实现代码:student.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><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>