• 大小: 26.35MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-06
  • 语言: 其他
  • 标签: 网上书店  SSH  

资源简介

源码分析博客:http://blog.csdn.net/kingszelda/article/details/41170835 很久之前的网上书店源码,里面或许有一些小的错误没有再修改过,毕竟搁置很久了。应大家要求,上传网络。里面有那些错误大家多包涵,代码只做参考。

资源截图

代码片段和文件信息

package com.huizhi.action;

import com.opensymphony.xwork2.ActionSupport;

import java.util.*;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import dao.BookManage;
import entity.*;

@SuppressWarnings(“serial“)
public class AllBookAction extends ActionSupport{

private BookManage bookManage;
//Spring注入bookManage
public void setBookManage(BookManage bookManage) {
this.bookManage = bookManage;
}

public String execute(){
//推荐书
List allRecommended = bookManage.allRecommended(1 6);
List recommendedBook = new ArrayList();
for(Recommended recommended : allRecommended){
Book book = new Book();
book = recommended.getBook();
recommendedBook.add(book);
}
//特价书
List allBargain = bookManage.allBargain(1 6);
List bargainBook = new ArrayList();
for(Bargain bargain : allBargain){
Book book = new Book();
book = bargain.getBook();
bargainBook.add(book);
}
//新书
List latestBook = bookManage.latestBook(1 6);

HttpServletRequest request = ServletActionContext.getRequest();
request.setAttribute(“recommendedBook“ recommendedBook);
request.setAttribute(“bargainBook“ bargainBook);
request.setAttribute(“latestBook“ latestBook);

return null;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8329  2014-11-13 14:38  BookStore\.classpath

     文件        529  2009-03-10 19:03  BookStore\.myhibernatedata

     文件        300  2014-11-13 15:35  BookStore\.mymetadata

     文件       2162  2014-11-10 13:15  BookStore\.project

     文件        500  2009-03-03 19:07  BookStore\.settings\.jsdtscope

     文件        348  2014-11-13 14:38  BookStore\.settings\com.genuitec.eclipse.migration.prefs

     文件        364  2014-11-10 13:15  BookStore\.settings\org.eclipse.jdt.core.prefs

     文件        553  2014-11-13 14:38  BookStore\.settings\org.eclipse.wst.common.component

     文件        561  2014-11-13 14:38  BookStore\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml

     文件        442  2014-11-13 14:38  BookStore\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2014-11-10 13:16  BookStore\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2014-11-10 13:16  BookStore\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        481  2009-03-03 19:24  BookStore\.springBeans

     文件       1374  2014-11-16 13:12  BookStore\src\com\huizhi\action\AllBookAction.java

     文件       1524  2014-11-16 13:16  BookStore\src\com\huizhi\action\AllOrdersAction.java

     文件       4065  2009-03-17 17:56  BookStore\src\com\huizhi\action\BookAction.java

     文件       1064  2009-03-16 19:29  BookStore\src\com\huizhi\action\DealOrdersAction.java

     文件       2057  2009-03-16 18:36  BookStore\src\com\huizhi\action\EnrollAction.java

     文件        703  2009-03-13 01:03  BookStore\src\com\huizhi\action\LeftAction.java

     文件       1841  2009-03-06 18:35  BookStore\src\com\huizhi\action\LoginAction.java

     文件       3005  2009-03-11 19:11  BookStore\src\com\huizhi\action\OneTypeAction.java

     文件       1426  2009-03-11 18:47  BookStore\src\com\huizhi\action\OrdersAction.java

     文件       2296  2009-03-16 22:44  BookStore\src\com\huizhi\action\OrdersManageAction.java

     文件       2104  2009-03-13 16:58  BookStore\src\com\huizhi\action\ShoppingCartAction.java

     文件        975  2009-03-13 16:54  BookStore\src\com\huizhi\action\SingleBookAction.java

     文件       1519  2009-03-13 18:00  BookStore\src\com\huizhi\action\SingleOrdersAction.java

     文件       3981  2009-03-25 22:46  BookStore\src\com\huizhi\action\UpdateBookAction.java

     文件       1937  2009-03-09 21:50  BookStore\src\com\huizhi\action\UpdateCartAction.java

     文件        783  2009-03-13 19:32  BookStore\src\com\huizhi\action\UserExitAction.java

     文件        836  2009-03-14 02:02  BookStore\src\com\huizhi\action\UserInformationAction.java

............此处省略241个文件信息

评论

共有 条评论