• 大小: 16.79MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-26
  • 语言: Java
  • 标签: javawebssh  

资源简介

javaweb网上书城项目,采用ssh框架,mysql数据库。

资源截图

代码片段和文件信息

package action;

import java.io.File;
import java.util.List;

import javax.annotation.Resource;

import model.Admin;
import model.Book;
import model.Category;
import model.Indent;
import model.Items;
import model.User;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import service.AdminService;
import service.BookService;
import service.CategoryService;
import service.IndentService;
import service.UserService;
import util.PageUtil;
import util.SafeUtil;
import util.UploadUtil;

@Namespace(“/admin“)
@Action(“admin“)
@Results({
@Result(name=“login“location=“/admin/login.jsp“)
@Result(name=“main“location=“/admin/main.jsp“)
@Result(name=“indent“location=“/admin/pages/indent-list.jsp“)
@Result(name=“reindent“type=“redirect“location=“admin!indentList.action?status=${status}&page=${page}“)
@Result(name=“item“location=“/admin/pages/item-list.jsp“)
@Result(name=“user“location=“/admin/pages/user-list.jsp“)
@Result(name=“useradd“location=“/admin/pages/user-add.jsp“)
@Result(name=“userreset“location=“/admin/pages/user-reset.jsp“)
@Result(name=“userupdate“location=“/admin/pages/user-update.jsp“)
@Result(name=“reuser“type=“redirect“location=“admin!userList.action?page=${page}“)
@Result(name=“book“location=“/admin/pages/book-list.jsp“)
@Result(name=“bookupdate“location=“/admin/pages/book-update.jsp“)
@Result(name=“rebook“type=“redirect“location=“admin!bookList.action?status=${status}&page=${page}“)
@Result(name=“category“location=“/admin/pages/category-list.jsp“)
@Result(name=“categoryupdate“location=“/admin/pages/category-update.jsp“)
@Result(name=“recategory“type=“redirect“location=“admin!categoryList.action?page=${page}“)
@Result(name=“admin“location=“/admin/pages/admin-list.jsp“)
@Result(name=“adminadd“location=“/admin/pages/admin-add.jsp“)
@Result(name=“adminreset“location=“/admin/pages/admin-reset.jsp“)
@Result(name=“readmin“type=“redirect“location=“admin!adminList.action?page=${page}“)
})
public class AdminAction extends baseAction{
private static final long serialVersionUID = 1L;
private static final int rows = 10;

@Resource
private AdminService adminService;
@Resource
private IndentService indentService;
@Resource
private UserService userService;
@Resource
private BookService bookService;
@Resource
private CategoryService categoryService;

private List indentList;
private List itemList;
private List userList;
private List bookList;
private List categoryList;
private List adminList;

private User user;
private Book book;
private Category category;
private Admin admin;
private int status;
private int flag;
private int id;

private File photo; //获取上传文件
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-06-16 15:17  ssh_book\
     文件         841  2015-04-30 13:51  ssh_book\.classpath
     文件        1272  2015-04-30 13:51  ssh_book\.project
     目录           0  2015-06-16 15:06  ssh_book\.settings\
     文件         503  2015-01-16 12:41  ssh_book\.settings\.jsdtscope
     文件          93  2015-05-11 10:20  ssh_book\.settings\org.eclipse.core.resources.prefs
     文件         364  2015-01-16 12:40  ssh_book\.settings\org.eclipse.jdt.core.prefs
     文件         476  2015-04-30 13:51  ssh_book\.settings\org.eclipse.wst.common.component
     文件         345  2015-04-30 13:51  ssh_book\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2015-01-16 12:41  ssh_book\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2015-01-16 12:41  ssh_book\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2015-06-16 15:06  ssh_book\WebContent\
     目录           0  2015-06-16 15:06  ssh_book\WebContent\meta-INF\
     文件          39  2015-05-11 10:10  ssh_book\WebContent\meta-INF\MANIFEST.MF
     目录           0  2015-06-16 15:06  ssh_book\WebContent\WEB-INF\
     目录           0  2015-06-16 15:06  ssh_book\WebContent\WEB-INF\lib\
     文件      445288  2015-05-26 09:59  ssh_book\WebContent\WEB-INF\lib\antlr-2.7.7.jar
     文件        4467  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\aopalliance-1.0.jar
     文件       43578  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\asm-3.3.jar
     文件       38275  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\asm-commons-3.3.jar
     文件       21503  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\asm-tree-3.3.jar
     文件      608376  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\c3p0-0.9.1.jar
     文件      324238  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\cglib-nodep-2.1_3.jar
     文件       69002  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\commons-fileupload-1.3.1.jar
     文件      173587  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\commons-io-2.2.jar
     文件      384767  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\commons-lang3-3.2.jar
     文件       62050  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\commons-logging-1.1.3.jar
     文件      313898  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\dom4j-1.6.1.jar
     文件     1300487  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\freemarker-2.3.22.jar
     文件       75324  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\hibernate-commons-annotations-4.0.5.Final.jar
     文件     5272790  2015-05-26 09:56  ssh_book\WebContent\WEB-INF\lib\hibernate-core-4.3.8.Final.jar
............此处省略225个文件信息

评论

共有 条评论

相关资源