<%@ page import="java.util.*,entity.Category,entity.Product,factory.DAOFactory" %>
catesAll=DAOFactory.getCategoryDAOInstance().query("$", -1);
catesRoot = DAOFactory.getCategoryDAOInstance().query("@", -1);

解决方案 »

  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, "");
      

  2.   

    getCategoryDAOInstance()没有定义啊 
      

  3.   

    找不到getCategoryDAOInstance()方法
      

  4.   

    The method getCategoryDAOInstance() is undefined for the type DAOFactory
    DAOFactory里没有getCategoryDAOInstance()这个方法呀
    仔细检查下。