• 大小: 22.49MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-23
  • 语言: Java
  • 标签: ssh  

资源简介

基本功能有:用户登录注册、查看电影票、加入购物车、下单订票、在线留言等。管理员后台可以管理用户、电影票、订单等信息。数据库sql文件在压缩包里。Eclipse或MyEclipse工具。mysql5以上, tomcat8……

资源截图

代码片段和文件信息

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

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

     文件        842  2018-03-29 11:18  项目源码\dingpiao\.classpath

     文件       1041  2018-03-29 14:21  项目源码\dingpiao\.project

     文件        503  2018-03-29 11:18  项目源码\dingpiao\.settings\.jsdtscope

     文件        364  2018-03-29 11:18  项目源码\dingpiao\.settings\org.eclipse.jdt.core.prefs

     文件        476  2018-03-29 14:21  项目源码\dingpiao\.settings\org.eclipse.wst.common.component

     文件        345  2018-03-29 11:18  项目源码\dingpiao\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-03-29 11:18  项目源码\dingpiao\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-03-29 11:18  项目源码\dingpiao\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2998  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\action\adminAction.class

     文件       9494  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\action\buyAction.class

     文件       4352  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\action\catelogAction.class

     文件       7888  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\action\goodsAction.class

     文件       3248  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\action\indexAction.class

     文件       3396  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\action\liuyanAction.class

     文件       5846  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\action\UserAction.class

     文件       5378  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\dao\TAdminDAO.class

     文件       5459  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\dao\TCatelogDAO.class

     文件       6433  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\dao\TGoodsDAO.class

     文件       5432  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\dao\TLiuyanDAO.class

     文件       5693  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\dao\TOrderDAO.class

     文件       5622  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\dao\TOrderItemDAO.class

     文件       5083  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\dao\TUserDAO.class

     文件       1149  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\model\TAdmin.class

     文件        782  2018-03-29 11:18  项目源码\dingpiao\build\classes\com\model\TAdmin.hbm.xml

     文件       1397  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\model\TCatelog.class

     文件        957  2018-03-29 11:18  项目源码\dingpiao\build\classes\com\model\TCatelog.hbm.xml

     文件       3867  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\model\TGonggao.class

     文件       2327  2018-03-29 11:18  项目源码\dingpiao\build\classes\com\model\TGonggao.hbm.xml

     文件       3530  2018-03-29 15:50  项目源码\dingpiao\build\classes\com\model\TGoods.class

     文件       2038  2018-03-29 11:18  项目源码\dingpiao\build\classes\com\model\TGoods.hbm.xml

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

评论

共有 条评论