User module of Java Web Book Mall Design (1)
This paper mainly analyzes the user module of the book mall, and the specific contents are as follows
1. User module related class creation
domain:User dao:UserDao service:UserDao web. servlet:UserServlet
2. User registration
2.1 registration process
/jsps/user/regist. jsp -> UserServlet#regist() -> msg. jsp
2.2 registration page
2.3 UserServlet
User
BaseServlet
UserServlet
2.4 UserService
2.5 UserDao
3. User activation
Process: in the user's mail - > userservlet#active() - > MSG jsp
User login
Process: / JSP / user / login jsp -> UserServlet#login() -> index. jsp
User exit
Process: top jsp -> UserServlet#quit() -> login. jsp
Quit(): destroy the session!
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.