Java user management system [full version]

Project Introduction

        Name: UMS

UMS: User Manager System, user management system

        overall demand

1) Query all [Phase 1] 
2) Add [Phase 1] 
3) Delete [Phase 1] 
4) Query details [Phase 1] 
5) Conditional query [Phase 1] 
6) Modify [Phase 2]

        build environment

Step 1: Create web project 
Step 2: Import jar package 
Step 3: Create package package and JavaBean 

public class User { 
 private String id; //唯一标识 
 private String loginName; //登录名 
 private String loginPwd; //登录密码 
 private String userName; //用户名(昵称) 
 private String sex; //性别 
 private String education; //学历 
 private String birthday; //生日 
 private String telephone; //电话 
 private String[] interest; //兴趣爱好 
 private String remark; //备注 
 private String utype; //权限: 管理员/普通用户 
}

query all

        Statement of needs

        demand analysis

        Code

/login/left.jsp 

UserServlet

 

UserService

 

UserDao

 

/user/list.jsp 

Add user

        Statement of needs

        demand analysis

        Code

/user/add.jsp

UserServlet 

 UserService 

UserDao  

 

Query and formulate user information

        Statement of needs

        demand analysis

        Code

/user/list.jsp

UserServlet

  UserService 

        think

How to save and display query conditions on JSP pages

Delete specified user information

        Statement of needs

        demand analysis

        Code

/user/list.jsp

UserServlet 

 

UserService 

 

 

 

UserDao 

        think

Pop up a confirmation box before deleting 

Inquiry Details

        Statement of needs

        demand analysis

        Code

/user/list.jsp

UserServlet

 

UserService

/user/view.jsp  

edit user

        Statement of needs

To meet such complex requirements, we need to split it into two steps: 
1. User data query display: click to edit, query a certain user data, and display it on the JSP page 
2. User data modification: edit the page, click "OK" , write the data to the hard disk file, and return to the list display  

        User data query display

                demand analysis

                Code

/user/list.jsp

UserServlet 

 

/user/edit.jsp

        User data modification

                demand analysis

                Code

/user/edit.jsp

UserServle

 

 UserService 

 

UserDao

User login

        Statement of needs

 

        demand analysis

        Code

/login/login.jsp

UserServlet 

 

UserService 

 Index.jsp

/login/login.jsp 

verification code

        Statement of needs

        Click to switch verification code

                demand analysis

                Code

/login/login.jsp

UtilsServlet

 

        verification code

                demand analysis

                Code

/login/login.jsp

 UserServlet 

Remember Account Name

        Statement of needs

        demand analysis

        Code

/login/login.jsp 

UserServlet

 

/login/login.jsp (echo display) 

 

automatic log-in

        Statement of needs

        demand analysis

        Code

 /login/login.jsp 

UserServlet 

 

  

permission check

        Statement of needs

        demand analysis

Change the hyperlink of user management to /adminUser?method=list to facilitate interception for a while  

        Code

PowerFilter

 

Guess you like

Origin blog.csdn.net/weixin_45481821/article/details/123591390