Ghostwriting and ghostwriting JSP, Servlet, JavaBean programs

Ghostwriting and doing JSP, Servlet, JavaBean programs
Book store
1. Function analysis
1. User registration
2. User login
3. Adding products (CURD)
4. Product viewing -- list query
5. Product details page
6. Adding products to shopping Cart
7. View shopping cart 8. Modify shopping
cart
9. Create order
10. Order viewing (cancellation)
11. Online payment
12. Download sales list , Add products to shopping cart, shopping cart management, order generation, order management, online payment Administrator : Add products, product management, view orders, list view (export) 2. System design 1 technology selection (system architecture) JSTL + JSP + Servlet + JavaBean + BeanUtils + FileUpload + JavaMail + DBUtils(JDBC) + C3P0 + MySQL + Eclipse Mars2 + Tomcat7.0 + JDK1.7 + Windows 10 MVC mode JavaEE three-tier structure web layer service layer dao layer DAO mode 2. Function realization 1 User registration 1. Function 1: User registration (technical points: verification code technology, activation email technology)












1) One-time verification code
Principle : In the verification code generation Servlet program, the generated verification code is stored in the session, and the verification code submitted by the user is compared with the verification code saved in the session. If the same, the request is legal

2) JS verification of the registration form (you can refer to the js code of the Netease Pass Project),
consider whether the JS verification can be extracted into a framework
3) Deal with the problem of form garbled characters-----general get post garbled character filter
4) Password MD5 encryption
5) Activation Email
500.jsp Display wrong information
404.jsp Automatically refresh and jump back to the main page
2 User login
principle: The user enters the correct user name and password, the login is successful, and the user information will be saved in the Session object. ------ Remember username and password, log in automatically

1) In the login form, add remember user name and automatic login function

2) Determine whether the account is activated during the login process

3) Display the remember username
in Add value="${cookie.username.value}" to the input item of username and
check the automatic login checkbox to add
4) Logout function after login
Logout Session
3 User automatic login filter The automatic login function of the browser is
valid for all pages of the system (for example, when accessing index.jsp list_product.jsp info_product.jsp, these pages will perform automatic login)
* For login-related pages, the automatic login logic will not be performed (login.jsp, LoginServlet, InvalidateServlet)
1) Determine whether the request page needs to be automatically logged in
2) Whether it has been logged in
3) Whether it contains an automatic login cookie
4) Automatic login
5) In LoginServlet, add the processing code for remembering user name and automatic login if it is not checked! ! ! ! ! ! !
6) In the logout function InvalidateServlet clears the automatic login information 4. There are three precautions for
adding files to the product 1) The input input box must have the name attribute 2) The form form must be submitted in post 3) Set the enctype of the form to multipart/form-data form submission There are two types of verification: client-side verification and server-side verification------ Only server-side verification can ensure data accuracy





After the product image is uploaded to the server, which directory is it saved in? ? ? It must be directly under WebRoot and its subdirectories except WEB-INF and META-INF. In
general, a table corresponds to Domain class --- DAO class ---- Service class
5 product list view
http://www.6daixie .com/contents/19/1342.html

 

Our field of direction: window programming, numerical algorithm, AI, artificial intelligence, financial statistics, econometric analysis, big data, network programming, WEB programming, communication programming, game programming, multimedia linux, plug-in programming program, API, image processing, embedded/MCU database programming, console process and thread, network security, assembly language hardware Programming software design engineering standards and regulations. The ghostwriting and ghostwriting programming languages ​​or tools include but are not limited to the following:

C/C++/C# ghostwriting

Java ghostwriting

IT ghostwriting

Python ghostwriting

Tutored programming assignments

Matlab ghostwriting

Haskell ghostwriting

Processing ghostwriting

Building a Linux environment

Rust ghostwriting

Data Structure Assginment

MIPS ghostwriting

Machine Learning homework ghostwriting

Oracle/SQL/PostgreSQL/Pig database ghostwriting/doing/coaching

web development, website development, website work

ASP.NET website development

Finance Insurance Statistics Statistics, Regression, Iteration

Prolog ghostwriting

Computer Computational method

 

Because professional, so trustworthy. If necessary, please add QQ: 99515681 or email: [email protected]

WeChat: codinghelp

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325115905&siteId=291194637