• 大小: 27.64MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-28
  • 语言: 其他
  • 标签: SSH  

资源简介

SSH 网上书店

资源截图

代码片段和文件信息

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;
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;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-11-22 14:34  Shopping\
     文件        1093  2016-11-22 14:34  Shopping\.classpath
     文件        1333  2016-11-22 14:35  Shopping\.project
     目录           0  2016-11-22 14:34  Shopping\.settings\
     文件         522  2016-11-22 14:34  Shopping\.settings\.jsdtscope
     文件         364  2016-11-22 14:34  Shopping\.settings\org.eclipse.jdt.core.prefs
     文件         483  2016-11-22 14:34  Shopping\.settings\org.eclipse.wst.common.component
     文件         414  2016-11-22 14:34  Shopping\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2016-11-22 14:34  Shopping\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2016-11-22 14:34  Shopping\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2016-11-22 14:34  Shopping\src\
     目录           0  2016-11-22 14:34  Shopping\src\com\
     目录           0  2016-11-22 14:34  Shopping\src\com\huizhi\
     目录           0  2016-11-22 14:34  Shopping\src\com\huizhi\action\
     文件        1349  2016-11-07 14:44  Shopping\src\com\huizhi\action\AllBookAction.java
     文件        1511  2016-11-07 14:44  Shopping\src\com\huizhi\action\AllOrdersAction.java
     文件        4229  2016-11-07 14:44  Shopping\src\com\huizhi\action\BookAction.java
     文件        1064  2016-11-07 14:44  Shopping\src\com\huizhi\action\DealOrdersAction.java
     文件        2057  2016-11-07 14:44  Shopping\src\com\huizhi\action\EnrollAction.java
     文件         703  2016-11-07 14:44  Shopping\src\com\huizhi\action\LeftAction.java
     文件        1841  2016-11-07 14:44  Shopping\src\com\huizhi\action\LoginAction.java
     文件        3181  2016-11-22 14:55  Shopping\src\com\huizhi\action\OneTypeAction.java
     文件        1426  2016-11-07 14:44  Shopping\src\com\huizhi\action\OrdersAction.java
     文件        2296  2016-11-07 14:44  Shopping\src\com\huizhi\action\OrdersManageAction.java
     文件        2104  2016-11-07 14:44  Shopping\src\com\huizhi\action\ShoppingCartAction.java
     文件         975  2016-11-07 14:44  Shopping\src\com\huizhi\action\SingleBookAction.java
     文件        1519  2016-11-07 14:44  Shopping\src\com\huizhi\action\SingleOrdersAction.java
     文件        4018  2016-11-07 14:44  Shopping\src\com\huizhi\action\UpdateBookAction.java
     文件        1937  2016-11-07 14:44  Shopping\src\com\huizhi\action\UpdateCartAction.java
     文件         783  2016-11-07 14:44  Shopping\src\com\huizhi\action\UserExitAction.java
     文件         836  2016-11-07 14:44  Shopping\src\com\huizhi\action\UserInformationAction.java
............此处省略251个文件信息

评论

共有 条评论