The first is planning. Now that you have thought of those pages, this step can be omitted.
You should think of the database first.
Do the bottom design first, and build tables according to the required functions. (very important)
Second, do database connection and test whether it is successful, because many displays and operations are linked to the database. Make a connection class connection.
Third, establish ideas, jsp+ javabean or MVC.
If it's MVC, do the background first and attach the foreground label accordingly. If it is JSP +javabean, it goes without saying. You can write a page with a function, or you can JSP directly without javabean, as you said.
Page by page, all code snippets are bound to the page.
No matter how to achieve it, you need the following functions and things.
User user information includes registered login (verification password and user name).
Shoppingcart shopping cart (adding goods and deleting goods)
Product information, etc. (product details, etc. )
Simple JSP is out of date, such as speed, secondary development and so on.
It's all out of date, so it's recommended to use struts2.0 framework, if not.
I suggest you use j2ee standard for analysis and MVC pattern writing.
Jsp (non-code snippet, label uses display page)
Javabean (model control)
Servlet (logical object control) is realized according to its function.