Online dating
2016-08-23
0 0 0
no vote
Other
Earn points
Online dating
Functional analysis:
(1) registration
(2) log in
(3) users list
(4) the user details
Implementation:
Step1 creating tables
create table f_user(
id int primary key auto_increment,
username varchar(20) unique,
pwd varchar(10),
name varchar(20),
age int(3),
gender char(1),
phone varchar(20),
ask text);
create table f_pic(
id int primary key auto_increment,
picName varchar(100),
userId int);
Step2 create a Web project
Step3, entity classes
User,Pic
Step4,DAO class
UserDAO
public User findByUserName(String username);
public int save(User user);
public List findAll();
public User findById(int id);
PicDAO
public List findPicsByUserId(
int id);
public void save(Pic pic);
step5,regist.jsp
Step6,ActionServlet (use the suffix matches)
Register, create a folder for t
Functional analysis:
(1) registration
(2) log in
(3) users list
(4) the user details
Implementation:
Step1 creating tables
create table f_user(
id int primary key auto_increment,
username varchar(20) unique,
pwd varchar(10),
name varchar(20),
age int(3),
gender char(1),
phone varchar(20),
ask text);
create table f_pic(
id int primary key auto_increment,
picName varchar(100),
userId int);
Step2 create a Web project
Step3, entity classes
User,Pic
Step4,DAO class
UserDAO
public User findByUserName(String username);
public int save(User user);
public List findAll();
public User findById(int id);
PicDAO
public List findPicsByUserId(
int id);
public void save(Pic pic);
step5,regist.jsp
Step6,ActionServlet (use the suffix matches)
Register, create a folder for t
java
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
VPN source code accelerator
0
0
no vote
VPN source code
0
0
no vote
Springboot Campus Recruitment System
0
0
no vote
Java intelligent QR code access control management
0
0
no vote
No comment