数据库
create database student;
use student;
create table user(
id int primary key auto_increment,
user varchar(50) not null,
pwd varchar(50) not null,
name varchar(50) not null,
sex varchar(50) not null,
age int(50) not null
);
index.jsp
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
欢迎来到学生管理系统
用户登录
用户名: | |
密 码: | |
用户注册 |
addUser.jsp
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
用户注册