• 大小: 14.68MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-13
  • 语言: 其他
  • 标签: SSH框架  登录  注册  

资源简介

请只看登录和注册页面的,其他页面还在完善中

资源截图

代码片段和文件信息

package com.ynwi.ssh.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
import com.ynwi.ssh.beans.User;
import com.ynwi.ssh.forms.UserForm;
import com.ynwi.ssh.service.UserManager;

public class AdminHomeAction extends ActionSupport{

    private static final long serialVersionUID=1L;

private UserForm user;

private UserManager userManager;

public UserForm getUser() {
return user;
}

public void setUser(UserForm user) {
this.user = user;
}

public UserManager getUserManager() {
return userManager;
}

public void setUserManager(UserManager userManager) {
this.userManager = userManager;
}

public String execute()
{  
System.out.println(“输出走过这“);
try {

   HttpServletRequest request=ServletActionContext.getRequest();
   List selectempinfo= userManager.queryInfo();
   request.setAttribute(“selectuser“ selectempinfo);
   if(selectempinfo!=null){
    return “input“;
   }
   else return ERROR;
  } catch (Exception e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   return ERROR;
  }
  
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-09 23:11  notepadssh\
     文件         841  2017-04-07 11:11  notepadssh\.classpath
     文件        1043  2017-04-07 11:11  notepadssh\.project
     目录           0  2017-04-09 23:11  notepadssh\.settings\
     文件         503  2017-04-07 11:11  notepadssh\.settings\.jsdtscope
     文件         137  2017-04-09 21:26  notepadssh\.settings\org.eclipse.core.resources.prefs
     文件         364  2017-04-07 11:11  notepadssh\.settings\org.eclipse.jdt.core.prefs
     文件         482  2017-04-07 11:11  notepadssh\.settings\org.eclipse.wst.common.component
     文件         345  2017-04-07 11:11  notepadssh\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2017-04-07 11:11  notepadssh\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-04-07 11:11  notepadssh\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2017-04-09 23:11  notepadssh\build\
     目录           0  2017-04-09 23:11  notepadssh\build\classes\
     目录           0  2017-04-09 23:11  notepadssh\build\classes\com\
     目录           0  2017-04-09 23:11  notepadssh\build\classes\com\ynwi\
     目录           0  2017-04-09 23:11  notepadssh\build\classes\com\ynwi\ssh\
     目录           0  2017-04-09 23:11  notepadssh\build\classes\com\ynwi\ssh\action\
     文件        2025  2017-04-09 22:10  notepadssh\build\classes\com\ynwi\ssh\action\AdminHomeAction.class
     文件        1307  2017-04-09 17:32  notepadssh\build\classes\com\ynwi\ssh\action\AdminLoginAction.class
     文件        1753  2017-04-09 21:37  notepadssh\build\classes\com\ynwi\ssh\action\EventAction.class
     文件        1284  2017-04-09 11:12  notepadssh\build\classes\com\ynwi\ssh\action\LoginAction.class
     文件        1274  2017-04-08 23:05  notepadssh\build\classes\com\ynwi\ssh\action\RegisterAction-validation.xml
     文件        1215  2017-04-08 23:17  notepadssh\build\classes\com\ynwi\ssh\action\RegisterAction.class
     目录           0  2017-04-09 23:11  notepadssh\build\classes\com\ynwi\ssh\beans\
     文件         945  2017-04-09 17:54  notepadssh\build\classes\com\ynwi\ssh\beans\Admin.class
     文件         698  2017-04-09 17:46  notepadssh\build\classes\com\ynwi\ssh\beans\Admin.hbm.xml
     文件         939  2017-04-09 15:43  notepadssh\build\classes\com\ynwi\ssh\beans\Event.class
     文件         696  2017-04-09 14:04  notepadssh\build\classes\com\ynwi\ssh\beans\Event.hbm.xml
     文件        1124  2017-04-08 23:17  notepadssh\build\classes\com\ynwi\ssh\beans\User.class
     文件         760  2017-04-08 23:05  notepadssh\build\classes\com\ynwi\ssh\beans\User.hbm.xml
     目录           0  2017-04-09 23:11  notepadssh\build\classes\com\ynwi\ssh\dao\
............此处省略104个文件信息

评论

共有 条评论