赞
踩
继上几篇博客的代码 我打算把各种功能的代码一一清楚的写出来 今天写的是门户首页及新书上架,热销书籍!
门户首页分为两个java包和一部分的.js
CategoryDao
package com.huangjie.Dao; import java.util.List; import com.huangjie.entity.Category; import com.huangjie.utils.BaseDao; import com.huangjie.utils.PageBean; public class CategoryDao extends BaseDao<Category> { public List<Category> list(Category category, PageBean pageBean) throws Exception { String sql = "select * from t_easyui_category "; return super.executeQuery(sql,pageBean,Category.class); } }
CategoryAction
package com.huangjie.web; import java.sql.SQLException; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.huangjie.Dao.CategoryDao; import com.huangjie.entity.Category; import com.huangjie.framework.ActionSupport; import com.huangjie.framework.ModelDriven; import com.huangjie.utils.ResponseUtil; public class CategoryAction extends ActionSupport implements
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。