登录页面jsp

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=basePath%>">
<title>请登录</title>
</head>
<body bgcolor=LightBlue>
<div align="center">
<br>
<H1>欢迎光临登录平台</H1>
<body>
<form action="login" method="post">
<table width="90%">
<tr>
<td width="50%" height="30" align="right">用户名:</td>
<td width="50%" height="30" align="left">
<input type="text" name="username">
</td>
</tr>
<tr>
<td width="50%" height="30" align="right">密 码:</td>
<td width="50%" height="30" align="left">
<input type="password" name="password">
</td>
</tr>
<td width="100%" height="40" align="center" colspan="2">
<input type="submit" name="sub" value="登 录">
</td>
</tr>
</table>
</form>
</body>
</html>

posted @ 2024-02-23 15:19  涨涨涨张  阅读(7)  评论(0编辑  收藏  举报