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

资源简介

适合新手学习的管理系统,综合了三大框架和少量的JS技术,代码注释清晰

资源截图

代码片段和文件信息

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

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

     文件        848  2016-02-06 17:21  hotel\.classpath

     文件       1254  2016-02-06 17:21  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  2016-02-06 17:21  hotel\build\classes\com\integration\action\admin\AdminServiceAction.class

     文件       1206  2016-02-06 17:21  hotel\build\classes\com\integration\action\admin\SaveAdminAction.class

     文件       3310  2016-02-06 17:21  hotel\build\classes\com\integration\action\order\ListOrderAction.class

     文件       4193  2016-02-06 17:21  hotel\build\classes\com\integration\action\order\OrderServiceAction.class

     文件       3874  2016-02-06 17:21  hotel\build\classes\com\integration\action\order\SaveOrderAction.class

     文件       1261  2016-02-06 17:21  hotel\build\classes\com\integration\action\room\ListRoomAction.class

     文件       1195  2016-02-06 17:21  hotel\build\classes\com\integration\action\room\RemoveRoomAction.class

     文件       1187  2016-02-06 17:21  hotel\build\classes\com\integration\action\room\SaveRoomAction.class

     文件       1374  2016-02-06 17:21  hotel\build\classes\com\integration\action\room\UpdatePRoom.class

     文件       1195  2016-02-06 17:21  hotel\build\classes\com\integration\action\room\UpdateRoomAction.class

     文件       1245  2016-02-06 17:21  hotel\build\classes\com\integration\action\user\ListUserAction.class

     文件       1179  2016-02-06 17:21  hotel\build\classes\com\integration\action\user\RemoveUserAction.class

     文件       2322  2016-02-06 19:49  hotel\build\classes\com\integration\action\user\SaveUserAction.class

     文件       1358  2016-02-06 17:21  hotel\build\classes\com\integration\action\user\UpdatePUser.class

     文件       1179  2016-02-06 17:21  hotel\build\classes\com\integration\action\user\UpdateUserAction.class

     文件       3124  2016-02-06 19:31  hotel\build\classes\com\integration\action\user\UserAction.class

     文件        498  2016-02-06 17:21  hotel\build\classes\com\integration\dao\AdminDAO.class

     文件       2461  2016-02-06 17:21  hotel\build\classes\com\integration\dao\impl\AdminDAOImpl.class

     文件       2829  2016-02-06 17:21  hotel\build\classes\com\integration\dao\impl\OrderDAOImpl.class

     文件       1616  2016-02-06 17:21  hotel\build\classes\com\integration\dao\impl\RoomDAOImpl.class

     文件       2767  2016-02-06 20:07  hotel\build\classes\com\integration\dao\impl\UserDAOImpl.class

     文件        649  2016-02-06 17:21  hotel\build\classes\com\integration\dao\OrderDAO.class

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

评论

共有 条评论

相关资源