Book module of Java Web Book Mall Design (4)
•
Java
This paper then studies the classification module of the previous book Mall for your reference. The specific contents are as follows
1. Create related classes
cn. itcast. bookstore. book domain:Book dao:BookDao service :BookService web. servle:BookServlet
Book
BookDao
BookService
BookServlet
2. Query all books
Process: left JSP (all categories) - > bookservlet#findall() - > / JSP / book / list jsp
3. Query books by category
Process: left jsp -> BookServlet#findByCategory() -> list. jsp
4. Query details (load)
Process: list JSP (click a Book) - > bookservlet #load() - > desc.jsp
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.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码