附录A:系统核心代码
登录界面的名称为login.html 其主要代码为:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>
<body background=1.jpg><div
align="center"> <br><br><br><br><font face="华文隶
<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"
<meta http-equiv="description" content="This is my page"> <!-- <head>
<base href="<%=basePath%>">
String path = request.getContextPath(); String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + path + "/";
content="keyword1,keyword2,keyword3">
<link rel="stylesheet" type="text/css" href="styles.css"> --> </head>
书" size="7"><strong> </strong><em><font face="楷体">
欢 迎 用 户 登 录</font></em></font> <form action="LoginServlet"
method="post"> <font face="隶书" size="6">帐号</font><font face="隶书" size="6">: <input type="text"
name="username"><br><br>