javaweb book store design classification module of 2

  • 2020-05-17 05:28:25
  • OfStack

This article is brief in content, mainly introduces the classification module in javaweb book store, and the specific content is as follows

Class creation for the classification module

cn.itcast.bookstore.category
domain: Category
dao: CategoryDao
service: CategoryService
web. servlet: CategoryServlet

Query all categories

Process: main.jsp ( < iframe > ) - > CategoryService#findAll() - > left.jsp

Category


public class Category {
 private String cid;
 private String cname;

 public String getCid() {
 return cid;
 }
 public void setCid(String cid) {
 this.cid = cid;
 }
 public String getCname() {
 return cname;
 }
 public void setCname(String cname) {
 this.cname = cname;
 }
}


Related articles: