<%@ page import="java.util.*,entity.Category,entity.Product,factory.DAOFactory" %>
catesAll=DAOFactory.getCategoryDAOInstance().query("$", -1);
catesRoot = DAOFactory.getCategoryDAOInstance().query("@", -1);
catesAll=DAOFactory.getCategoryDAOInstance().query("$", -1);
catesRoot = DAOFactory.getCategoryDAOInstance().query("@", -1);
The method getCategoryDAOInstance() is undefined for the type DAOFactory
26: List<Product> prods = null;
27: int totalPages = 1;
28: try {
29: catesAll = DAOFactory.getCategoryDAOInstance().query("$", -1);
30: catesRoot = DAOFactory.getCategoryDAOInstance().query("@", -1);
31: totalPages = DAOFactory.getProductDAOInstance().getTotalPages(PAGE_SIZE, "", catename, "");
32: prods = DAOFactory.getProductDAOInstance().query(pageNo, PAGE_SIZE, "", catename, "");
DAOFactory里没有getCategoryDAOInstance()这个方法呀
仔细检查下。