• 大小: 13.68MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-15
  • 语言: Java
  • 标签: shh  java  eclipse  

资源简介

语言Java、JavaScript、JSP、HTML,平台eclipse,框架ssh(strut2+spring+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;
}
}

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

     文件        727  2016-08-27 21:29  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

     文件        305  2016-08-27 21:27  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  2017-07-22 09:04  hotel\build\classes\com\integration\action\admin\AdminServiceAction.class

     文件       1206  2017-07-22 09:04  hotel\build\classes\com\integration\action\admin\SaveAdminAction.class

     文件       3310  2017-07-22 09:04  hotel\build\classes\com\integration\action\order\ListOrderAction.class

     文件       4193  2017-07-22 09:04  hotel\build\classes\com\integration\action\order\OrderServiceAction.class

     文件       3874  2017-07-22 09:04  hotel\build\classes\com\integration\action\order\SaveOrderAction.class

     文件       4123  2017-07-22 09:04  hotel\build\classes\com\integration\action\overtimeWork\ListOvertimeWorkAction.class

     文件        141  2017-07-22 09:04  hotel\build\classes\com\integration\action\overtimeWork\package-info.class

     文件       1261  2017-07-22 09:04  hotel\build\classes\com\integration\action\room\ListRoomAction.class

     文件       1195  2017-07-22 09:04  hotel\build\classes\com\integration\action\room\RemoveRoomAction.class

     文件       1187  2017-07-22 09:04  hotel\build\classes\com\integration\action\room\SaveRoomAction.class

     文件       1374  2017-07-22 09:04  hotel\build\classes\com\integration\action\room\UpdatePRoom.class

     文件       1195  2017-07-22 09:04  hotel\build\classes\com\integration\action\room\UpdateRoomAction.class

     文件       1245  2017-07-22 09:04  hotel\build\classes\com\integration\action\user\ListUserAction.class

     文件       1179  2017-07-22 09:04  hotel\build\classes\com\integration\action\user\RemoveUserAction.class

     文件       1753  2017-07-22 09:04  hotel\build\classes\com\integration\action\user\SaveUserAction.class

     文件       1358  2017-07-22 09:04  hotel\build\classes\com\integration\action\user\UpdatePUser.class

     文件       1179  2017-07-22 09:04  hotel\build\classes\com\integration\action\user\UpdateUserAction.class

     文件       2870  2017-07-22 09:04  hotel\build\classes\com\integration\action\user\UserAction.class

     文件        498  2017-07-22 09:04  hotel\build\classes\com\integration\dao\AdminDAO.class

     文件       2461  2017-07-22 09:04  hotel\build\classes\com\integration\dao\impl\AdminDAOImpl.class

     文件       2829  2017-07-22 09:04  hotel\build\classes\com\integration\dao\impl\OrderDAOImpl.class

     文件       1961  2017-07-22 09:04  hotel\build\classes\com\integration\dao\impl\OvertimeWorkDAOImpl.class

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

评论

共有 条评论