Java web simple online bookstore project series, using the MVC model (servlet + jstl + dbutils), the beginning, jstldbutils
I. aiming at the difficulties for beginners of java web, I use a small web project to demonstrate java web Development Methods step by step. Each chapter introduces some key knowledge of java web development, this allows students to connect java web development knowledge points and learn to use them comprehensively.
For beginners, the sample code is the best teaching material. You may not be able to understand it once. You can read the sample code several times and learn the relevant knowledge points. If this tutorial introduces it clearly, please use Baidu-related knowledge on your own, or ask the teacher.
The technology stack used in this project is:
0. simple html pages without css, focusing on revealing servlet and database access skills
1. servlet
2. jsp (instead of writing scripts in jsp, it adopts the el and jstl expressions). The recommended practice is as follows:
3. dbutils (simple jdbc encapsulation) is used to access the database. Open Source China uses this technology as the database access layer.
4. Use Oracle for Databases
Ii. Basic project requirements:
A simple online bookstore project can be divided into website backend and front-end:
(1) Background function: the administrator can log on to the background to add the category and information of books.
(2) Foreground function: After registering and logging on to the website, common users can browse the book information under each category, add it to the shopping cart, and simulate payment for placing orders.
Students with poor foundations can follow this example step by step to understand the principles of java web development, lay the foundation for the three major frameworks in the future, and learn more about java web development.
Iii. Project Description:
1. Log On As a background Administrator
2. log on successfully. The background Management Homepage is displayed.
3. New category
.
4. view the category list
5. add books
6. Book list
7. Front-end Homepage
8. Front-End User Registration
9. Front-End User Login
10. view the shopping cart
11 user orders
12. Pay the order
13. Code