• 大小: 14.09MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-29
  • 语言: 其他
  • 标签: ssh  框架  简单  基础  

资源简介

很简洁的ssh框架demo,如果加上Dao层就是个mvc的小框架

资源截图

代码片段和文件信息

package com.ssh.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;


import com.opensymphony.xwork2.ActionSupport;

public class baseAction extends ActionSupport{

/**
 * 
 */
private static final long serialVersionUID = 1L;

   
    protected HttpServletRequest getRequest() {
    
        return ServletActionContext.getRequest();
    }
    
    protected HttpServletResponse getResponse(){
     return ServletActionContext.getResponse();
    }
    
    protected HttpSession getSession() {
        return getRequest().getSession();
    }

}

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

     文件        479  2012-12-06 10:35  ssh_demo\.classpath

     文件       1041  2012-12-06 10:35  ssh_demo\.project

     文件        360  2012-12-06 10:35  ssh_demo\.settings\.jsdtscope

     文件         88  2012-12-06 11:03  ssh_demo\.settings\org.eclipse.core.resources.prefs

     文件        330  2012-12-06 10:35  ssh_demo\.settings\org.eclipse.jdt.core.prefs

     文件        217  2012-12-06 10:35  ssh_demo\.settings\org.eclipse.jst.common.project.facet.core.prefs

     文件        422  2012-12-06 10:35  ssh_demo\.settings\org.eclipse.wst.common.component

     文件        229  2012-12-06 10:35  ssh_demo\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2012-12-06 10:35  ssh_demo\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2012-12-06 10:35  ssh_demo\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        845  2012-12-06 11:03  ssh_demo\build\classes\com\ssh\action\baseAction.class

     文件       2643  2012-12-06 13:26  ssh_demo\build\classes\com\ssh\action\UserAction.class

     文件       2778  2012-12-06 13:13  ssh_demo\build\classes\com\ssh\pojo\Book.class

     文件       1887  2012-12-06 11:04  ssh_demo\build\classes\com\ssh\pojo\BrrowBook.class

     文件       1303  2012-12-06 11:04  ssh_demo\build\classes\com\ssh\pojo\Role.class

     文件       3737  2012-12-06 11:04  ssh_demo\build\classes\com\ssh\pojo\User.class

     文件       2418  2012-12-06 13:23  ssh_demo\build\classes\com\ssh\service\baseService.class

     文件       2661  2012-12-06 13:17  ssh_demo\build\classes\com\ssh\service\UserService.class

     文件       1546  2012-12-06 10:35  ssh_demo\build\classes\log4j.properties

     文件       1081  2012-12-06 10:35  ssh_demo\build\classes\struts.xml

     文件        734  2012-12-06 10:35  ssh_demo\src\com\ssh\action\baseAction.java

     文件       1760  2012-12-06 13:26  ssh_demo\src\com\ssh\action\UserAction.java

     文件       2209  2012-12-06 13:13  ssh_demo\src\com\ssh\pojo\Book.java

     文件       1426  2012-12-06 11:04  ssh_demo\src\com\ssh\pojo\BrrowBook.java

     文件        960  2012-12-06 11:04  ssh_demo\src\com\ssh\pojo\Role.java

     文件       3006  2012-12-06 11:04  ssh_demo\src\com\ssh\pojo\User.java

     文件       2009  2012-12-06 13:23  ssh_demo\src\com\ssh\service\baseService.java

     文件       1552  2012-12-06 13:17  ssh_demo\src\com\ssh\service\UserService.java

     文件       1546  2012-12-06 10:35  ssh_demo\src\log4j.properties

     文件       1081  2012-12-06 10:35  ssh_demo\src\struts.xml

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

评论

共有 条评论