Website development of the user module

In this project, the user is divided into three categories: administrators, special users and ordinary users.

Only one administrator, log in mysql insert data in terminal server.

Ordinary users to register in the registration sub-module, special user rights conferred by the administrator.

Public classes and user database operations

user

This is a package, a package of user attributes provided get () method and set () method to get or set the property of the user object.

userDB

This is a database operations, providing users insert a table, query, modify and delete functions.

Registration sub-module

RegisterServlet

Submitted registration information processing register.jsp inserted user data objects via a data format after inspection method userDB class table provided to users.

register.jsp

Submit registration information page

Log in sub-module

 

LoginServlet

Login information processing login.jsp submission, after checking the data format provided by the method userDB class of queries to the users table

login.jsp

Login information submission page

User management sub-module

The session determination module required field is in the root accoutn

AdminUserServlet

1, initialization query, the query method userDB class provides a set of user, and to display adminUser.jsp

2, the query received adminUser.jsp, the method userDB user class provides a set of queries, and to display adminUser.jsp

adminUser.jsp

The display data AdminUserServlet

Custom queries submitted data to AdminUserServlet

Guess you like

Origin www.cnblogs.com/blunFan/p/11655390.html