• 大小: 17.6MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-27
  • 语言: Java
  • 标签: javaEE  购物系统  毕设  

资源简介

基于Java EE淘宝网站购物系统 学生毕设,经测试,系统完美运行。

资源截图

代码片段和文件信息

package com.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.dao.TAdminDAO;
import com.model.TAdmin;
import com.opensymphony.xwork2.ActionSupport;

public class adminAction extends ActionSupport
{
private int userId;
private String userName;
private String userPw;
 
private String message;
private String path;

private int index=1;

private TAdminDAO adminDAO;


public String adminAdd()
{
TAdmin admin=new TAdmin();
admin.setUserName(userName);
admin.setUserPw(userPw);
adminDAO.save(admin);
this.setMessage(“操作成功“);
this.setPath(“adminManage.action“);
return “succeed“;
}



public String adminManage()
{
List adminList=adminDAO.findAll();
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“adminList“ adminList);
return ActionSupport.SUCCESS;
}


public String adminDel()
{
adminDAO.delete(adminDAO.findById(userId));
this.setMessage(“删除成功“);
this.setPath(“adminManage.action“);
return “succeed“;
}



public TAdminDAO getAdminDAO()
{
return adminDAO;
}

public void setAdminDAO(TAdminDAO adminDAO)
{
this.adminDAO = adminDAO;
}

public String getMessage()
{
return message;
}

public int getIndex()
{
return index;
}



public void setIndex(int index)
{
this.index = index;
}



public void setMessage(String message)
{
this.message = message;
}

public String getPath()
{
return path;
}

public void setPath(String path)
{
this.path = path;
}

public int getUserId()
{
return userId;
}

public void setUserId(int userId)
{
this.userId = userId;
}

public String getUserName()
{
return userName;
}

public void setUserName(String userName)
{
this.userName = userName;
}

public String getUserPw()
{
return userPw;
}

public void setUserPw(String userPw)
{
this.userPw = userPw;
}
 
}

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

     文件       8344  2013-04-01 17:14  王倩\db_wlgw.sql

     文件       5353  2013-05-07 13:12  王倩\wlgw\.classpath

     文件        548  2013-05-07 13:13  王倩\wlgw\.externalToolBuilders\org.eclipse.wst.jsdt.core.javascriptValidator.launch

     文件        527  2013-05-07 13:12  王倩\wlgw\.myhibernatedata

     文件        285  2013-05-07 13:12  王倩\wlgw\.mymetadata

     文件       2388  2013-05-07 13:12  王倩\wlgw\.project

     文件        500  2013-05-07 13:13  王倩\wlgw\.settings\.jsdtscope

     文件        152  2013-05-07 13:13  王倩\wlgw\.settings\org.eclipse.core.resources.prefs

     文件        395  2013-05-07 13:13  王倩\wlgw\.settings\org.eclipse.jdt.core.prefs

     文件        450  2013-05-07 13:13  王倩\wlgw\.settings\org.eclipse.wst.common.component

     文件        252  2013-05-07 13:13  王倩\wlgw\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2013-05-07 13:13  王倩\wlgw\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2013-05-07 13:13  王倩\wlgw\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        273  2013-05-07 13:12  王倩\wlgw\.springBeans

     文件       2054  2013-05-07 13:13  王倩\wlgw\src\com\action\adminAction.java

     文件       8296  2013-05-08 09:03  王倩\wlgw\src\com\action\buyAction.java

     文件       3636  2013-05-07 13:13  王倩\wlgw\src\com\action\catelogAction.java

     文件       6424  2013-05-07 13:13  王倩\wlgw\src\com\action\goodsAction.java

     文件       1869  2013-05-07 13:13  王倩\wlgw\src\com\action\indexAction.java

     文件       2657  2013-05-07 13:13  王倩\wlgw\src\com\action\liuyanAction.java

     文件       5024  2013-05-07 13:13  王倩\wlgw\src\com\action\UserAction.java

     文件       3980  2013-05-07 13:13  王倩\wlgw\src\com\dao\TAdminDAO.java

     文件       4191  2013-05-07 13:13  王倩\wlgw\src\com\dao\TCatelogDAO.java

     文件       5415  2013-05-07 13:13  王倩\wlgw\src\com\dao\TGoodsDAO.java

     文件       4153  2013-05-07 13:13  王倩\wlgw\src\com\dao\TLiuyanDAO.java

     文件       4475  2013-05-07 13:13  王倩\wlgw\src\com\dao\TOrderDAO.java

     文件       4377  2013-05-07 13:13  王倩\wlgw\src\com\dao\TOrderItemDAO.java

     文件       3729  2013-05-07 13:13  王倩\wlgw\src\com\dao\TUserDAO.java

     文件        782  2013-05-07 13:13  王倩\wlgw\src\com\model\TAdmin.hbm.xml

     文件        887  2013-05-07 13:13  王倩\wlgw\src\com\model\TAdmin.java

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

评论

共有 条评论