2017.10.20 jsp用户登陆界面连接数据库

用户登陆界面

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page contentType="text/html"  import="java.sql.*" %>
<%
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>用户登录界面</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>
    <h1 align="center">用户登录</h1>
    <hr>
    <form action="Test.jsp" method="post">
    	<p align="center">
				请输入学号:<input type="text" name="userSno"><br/>
				请输入密码:<input type="password" name="userPassword"><br/>
				 <br/>
				<input type="submit" value="提交" name="B1">
				<input type="reset" value="取消" name="B2"> <a href="Signup.jsp">立即注册</a><br/>
				
    </form>
  </body>
</html>
posted @ 2017-10-20 22:25  LegendQi  阅读(301)  评论(0编辑  收藏  举报