• 大小: 24.67MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-23
  • 语言: Java
  • 标签: JAVA  数据库  

资源简介

含有数据库的JAVA酒店管理系统,有用户有订房、退订功能、修改密码功能,管理员有增删查改用户信息功能,还有分页管理功能、修改密码功能、查看订房信息、查看房间信息等

资源截图

代码片段和文件信息

package com.integration.action.admin;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.integration.entity.Admin;
import com.integration.service.AdminService;
@SuppressWarnings(“serial“)
public class AdminServiceAction extends ActionSupport {
private Admin admin;
private AdminService adminService;
public AdminService getAdminService() {
return adminService;
}
public void setAdminService(AdminService adminService) {
this.adminService = adminService;
}
public Admin getAdmin() {
return admin;
}
public void setAdmin(Admin admin) {
this.admin = admin;
}
@Override
public String execute() throws Exception {
return super.execute();
}
public String login() {
Admin adminLogin = this.adminService.loginAdmin(this.admin);
if (adminLogin != null) {
HttpServletRequest request = ServletActionContext.getRequest();
HttpSession session = request.getSession();
session.setAttribute(“admin“ adminLogin);
return “loginSuc“;
}
return INPUT;
}
public String loginOut() throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
HttpSession session = request.getSession();
session.removeAttribute(“admin“);
return INPUT;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-17 08:37  hotel\
     文件         910  2018-06-30 14:41  hotel\.classpath
     文件        1038  2018-06-29 10:36  hotel\.project
     目录           0  2018-06-29 10:36  hotel\.settings\
     文件         503  2018-06-29 10:36  hotel\.settings\.jsdtscope
     文件         670  2018-06-30 14:44  hotel\.settings\org.eclipse.jdt.core.prefs
     文件         469  2018-06-29 10:36  hotel\.settings\org.eclipse.wst.common.component
     文件         345  2018-06-29 10:36  hotel\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-06-29 10:36  hotel\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-06-29 10:36  hotel\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-06-29 10:36  hotel\build\
     目录           0  2018-06-30 21:01  hotel\build\classes\
     目录           0  2018-06-30 21:01  hotel\build\classes\com\
     目录           0  2018-06-30 21:01  hotel\build\classes\com\integration\
     目录           0  2018-06-30 21:01  hotel\build\classes\com\integration\action\
     目录           0  2018-06-30 21:01  hotel\build\classes\com\integration\action\admin\
     文件        2128  2018-06-30 21:01  hotel\build\classes\com\integration\action\admin\AdminServiceAction.class
     文件        1206  2018-06-30 21:01  hotel\build\classes\com\integration\action\admin\SaveAdminAction.class
     目录           0  2018-06-30 21:01  hotel\build\classes\com\integration\action\order\
     文件        4113  2018-06-30 21:01  hotel\build\classes\com\integration\action\order\ListOrderAction.class
     文件        4193  2018-06-30 21:01  hotel\build\classes\com\integration\action\order\OrderServiceAction.class
     文件        4521  2018-06-30 21:01  hotel\build\classes\com\integration\action\order\SaveOrderAction.class
     目录           0  2018-06-30 21:01  hotel\build\classes\com\integration\action\room\
     文件        2012  2018-06-30 21:01  hotel\build\classes\com\integration\action\room\ListRoomAction.class
     文件        1470  2018-06-30 21:01  hotel\build\classes\com\integration\action\room\RemoveRoomAction.class
     文件        1261  2018-06-30 21:01  hotel\build\classes\com\integration\action\room\SaveRoomAction.class
     文件        1374  2018-06-30 21:01  hotel\build\classes\com\integration\action\room\UpdatePRoom.class
     文件        1269  2018-06-30 21:01  hotel\build\classes\com\integration\action\room\UpdateRoomAction.class
     目录           0  2018-06-30 21:01  hotel\build\classes\com\integration\action\user\
     文件        2087  2018-06-30 21:01  hotel\build\classes\com\integration\action\user\ListUserAction.class
     文件        1589  2018-06-30 21:01  hotel\build\classes\com\integration\action\user\RemoveUserAction.class
............此处省略175个文件信息

评论

共有 条评论