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

资源简介

基于ssh框架的宾馆订房系统,适合初学者学习spring、struts2、hibernate框架

资源截图

代码片段和文件信息

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

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

     文件        841  2012-11-16 15:53  hotel\.classpath

     文件       1038  2012-11-16 15:53  hotel\.project

     文件        503  2012-11-16 15:53  hotel\.settings\.jsdtscope

     文件        395  2012-11-16 15:52  hotel\.settings\org.eclipse.jdt.core.prefs

     文件        469  2012-11-16 15:53  hotel\.settings\org.eclipse.wst.common.component

     文件        345  2012-11-16 15:53  hotel\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2012-11-16 15:53  hotel\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2012-11-16 15:53  hotel\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2128  2012-11-19 10:30  hotel\build\classes\com\integration\action\admin\AdminServiceAction.class

     文件       1206  2012-11-19 10:30  hotel\build\classes\com\integration\action\admin\SaveAdminAction.class

     文件       3310  2012-11-19 10:30  hotel\build\classes\com\integration\action\order\ListOrderAction.class

     文件       4193  2012-11-19 10:30  hotel\build\classes\com\integration\action\order\OrderServiceAction.class

     文件       3874  2012-11-19 10:42  hotel\build\classes\com\integration\action\order\SaveOrderAction.class

     文件       1261  2012-11-19 10:30  hotel\build\classes\com\integration\action\room\ListRoomAction.class

     文件       1195  2012-11-19 10:30  hotel\build\classes\com\integration\action\room\RemoveRoomAction.class

     文件       1187  2012-11-19 10:30  hotel\build\classes\com\integration\action\room\SaveRoomAction.class

     文件       1374  2012-11-19 10:30  hotel\build\classes\com\integration\action\room\UpdatePRoom.class

     文件       1195  2012-11-19 10:30  hotel\build\classes\com\integration\action\room\UpdateRoomAction.class

     文件       1245  2012-11-19 10:30  hotel\build\classes\com\integration\action\user\ListUserAction.class

     文件       1179  2012-11-19 10:30  hotel\build\classes\com\integration\action\user\RemoveUserAction.class

     文件       1753  2012-11-19 10:30  hotel\build\classes\com\integration\action\user\SaveUserAction.class

     文件       1358  2012-11-19 10:30  hotel\build\classes\com\integration\action\user\UpdatePUser.class

     文件       1179  2012-11-19 10:30  hotel\build\classes\com\integration\action\user\UpdateUserAction.class

     文件       2870  2012-11-19 10:30  hotel\build\classes\com\integration\action\user\UserAction.class

     文件        498  2012-11-19 10:30  hotel\build\classes\com\integration\dao\AdminDAO.class

     文件       2461  2012-11-19 10:30  hotel\build\classes\com\integration\dao\impl\AdminDAOImpl.class

     文件       2829  2012-11-19 10:30  hotel\build\classes\com\integration\dao\impl\OrderDAOImpl.class

     文件       1616  2012-11-19 11:38  hotel\build\classes\com\integration\dao\impl\RoomDAOImpl.class

     文件       2440  2012-11-19 10:30  hotel\build\classes\com\integration\dao\impl\UserDAOImpl.class

     文件        649  2012-11-19 10:30  hotel\build\classes\com\integration\dao\OrderDAO.class

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

评论

共有 条评论