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

资源简介

很不错的ssh项目,望采纳,谢谢大家下载。来源传智。

资源截图

代码片段和文件信息

package cn.itcast.shop.adminuser.action;

import org.apache.struts2.ServletActionContext;

import cn.itcast.shop.adminuser.service.AdminUserService;
import cn.itcast.shop.adminuser.vo.AdminUser;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class AdminUserAction extends ActionSupport implements
ModelDriven {
// 模型驱动使用的对象
private AdminUser adminUser = new AdminUser();

public AdminUser getModel() {
return adminUser;
}

// 注入AdminUserService
private AdminUserService adminUserService;

public void setAdminUserService(AdminUserService adminUserService) {
this.adminUserService = adminUserService;
}

// 后台登录的执行的方法
public String login() {
// 调用service方法完成登录
AdminUser existAdminUser = adminUserService.login(adminUser);
// 判断
if (existAdminUser == null) {
// 用户名或密码错误
this.addActionerror(“用户名或密码错误!“);
return “loginFail“;
} else {
// 登录成功:
ServletActionContext.getRequest().getSession()
.setAttribute(“existAdminUser“ existAdminUser);
return “loginSuccess“;
}
}
}

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

     文件          4  2018-10-15 17:44  ssh1\ssh\...txt

     文件        668  2018-05-25 19:25  ssh1\ssh\.classpath

     文件        285  2015-02-08 10:15  ssh1\ssh\.mymetadata

     文件       1747  2015-02-08 10:55  ssh1\ssh\.project

     文件        500  2015-02-08 10:15  ssh1\ssh\.settings\.jsdtscope

     文件        395  2015-02-08 10:15  ssh1\ssh\.settings\org.eclipse.jdt.core.prefs

     文件        450  2015-02-08 10:15  ssh1\ssh\.settings\org.eclipse.wst.common.component

     文件        252  2015-02-08 10:15  ssh1\ssh\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2015-02-08 10:15  ssh1\ssh\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2015-02-08 10:15  ssh1\ssh\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       7434  2015-02-28 10:51  ssh1\ssh\src\applicationContext.xml

     文件       1227  2015-02-11 15:58  ssh1\ssh\src\cn\itcast\shop\adminuser\action\AdminUserAction.java

     文件        602  2015-02-11 15:56  ssh1\ssh\src\cn\itcast\shop\adminuser\dao\AdminUserDao.java

     文件        518  2015-02-11 15:55  ssh1\ssh\src\cn\itcast\shop\adminuser\service\AdminUserService.java

     文件        447  2015-02-11 15:47  ssh1\ssh\src\cn\itcast\shop\adminuser\vo\AdminUser.hbm.xml

     文件        590  2015-02-11 15:46  ssh1\ssh\src\cn\itcast\shop\adminuser\vo\AdminUser.java

     文件       2251  2015-02-10 16:45  ssh1\ssh\src\cn\itcast\shop\cart\action\CartAction.java

     文件       1845  2015-02-10 16:42  ssh1\ssh\src\cn\itcast\shop\cart\vo\Cart.java

     文件        764  2015-02-10 15:25  ssh1\ssh\src\cn\itcast\shop\cart\vo\CartItem.java

     文件         79  2015-02-10 09:11  ssh1\ssh\src\cn\itcast\shop\category\action\CategoryAction.java

     文件       2078  2015-02-27 09:20  ssh1\ssh\src\cn\itcast\shop\category\adminaction\AdminCategoryAction.java

     文件       1077  2015-02-27 09:21  ssh1\ssh\src\cn\itcast\shop\category\dao\CategoryDao.java

     文件       1128  2015-02-27 09:20  ssh1\ssh\src\cn\itcast\shop\category\service\CategoryService.java

     文件        638  2015-02-27 10:37  ssh1\ssh\src\cn\itcast\shop\category\vo\Category.hbm.xml

     文件        911  2015-02-10 16:42  ssh1\ssh\src\cn\itcast\shop\category\vo\Category.java

     文件       2879  2015-02-27 10:52  ssh1\ssh\src\cn\itcast\shop\categorysecond\adminaction\AdminCategorySecondAction.java

     文件       1849  2015-02-27 11:42  ssh1\ssh\src\cn\itcast\shop\categorysecond\dao\CategorySecondDao.java

     文件       2197  2015-02-27 11:42  ssh1\ssh\src\cn\itcast\shop\categorysecond\service\CategorySecondService.java

     文件        759  2015-02-10 14:19  ssh1\ssh\src\cn\itcast\shop\categorysecond\vo\CategorySecond.hbm.xml

     文件       1024  2015-02-10 11:56  ssh1\ssh\src\cn\itcast\shop\categorysecond\vo\CategorySecond.java

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

评论

共有 条评论