• 大小: 7.3MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-02
  • 语言: 其他
  • 标签: struts2  

资源简介

适用于struts2初学者,这只是一些简单的原理,看了之后会对你学习struts2有所帮助

资源截图

代码片段和文件信息

package action;

import java.util.List;

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

import controller.Action;
import dao.UserDAO;
import dao.impl.UserDAOImpl;

public class ListAction implements Action {

public String execute(HttpServletRequest request
HttpServletResponse response) throws Exception {
//进行业务逻辑处理
UserDAO userdao=new UserDAOImpl();
List all=userdao.findAll();
request.setAttribute(“all“all);
if(all!=null){
return “success“;
}else{
return “input“;
}
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-08-05 08:36  ch03_mystruts_03\
     文件        1829  2011-08-01 17:07  ch03_mystruts_03\.classpath
     目录           0  2011-07-29 06:38  ch03_mystruts_03\.myeclipse\
     文件         543  2011-07-28 21:23  ch03_mystruts_03\.myhibernatedata
     文件         322  2011-08-06 09:05  ch03_mystruts_03\.mymetadata
     文件        1624  2011-08-06 09:04  ch03_mystruts_03\.project
     目录           0  2011-08-05 08:36  ch03_mystruts_03\.settings\
     文件         500  2011-07-28 21:21  ch03_mystruts_03\.settings\.jsdtscope
     文件        1040  2011-08-05 08:36  ch03_mystruts_03\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件         629  2011-07-28 21:21  ch03_mystruts_03\.settings\org.eclipse.jdt.core.prefs
     文件          49  2011-07-28 21:21  ch03_mystruts_03\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2011-07-28 21:21  ch03_mystruts_03\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件       18432  2011-07-29 06:38  ch03_mystruts_03\mvc02.dmp
     目录           0  2011-08-05 08:36  ch03_mystruts_03\src\
     目录           0  2011-08-05 08:52  ch03_mystruts_03\src\action\
     文件         585  2011-08-05 08:55  ch03_mystruts_03\src\action\ListAction.java
     文件         759  2011-08-03 15:37  ch03_mystruts_03\src\action\LoginAction.java
     文件         362  2011-08-03 13:32  ch03_mystruts_03\src\action\RegAction.java
     目录           0  2011-08-05 08:36  ch03_mystruts_03\src\controller\
     文件         256  2011-08-02 14:35  ch03_mystruts_03\src\controller\Action.java
     文件         729  2011-08-02 18:24  ch03_mystruts_03\src\controller\ActionManager.java
     文件         986  2011-08-05 08:39  ch03_mystruts_03\src\controller\ActionMapping.java
     文件        2764  2011-08-05 08:43  ch03_mystruts_03\src\controller\ActionMappingManager.java
     文件        2368  2011-08-05 08:46  ch03_mystruts_03\src\controller\ActionServlet.java
     文件         679  2011-08-05 08:38  ch03_mystruts_03\src\controller\Result.java
     目录           0  2011-08-05 08:36  ch03_mystruts_03\src\dao\
     文件         564  2011-07-28 22:11  ch03_mystruts_03\src\dao\HouseDAO.java
     文件         105  2011-07-29 10:03  ch03_mystruts_03\src\dao\HouseTypeDAO.java
     目录           0  2011-08-05 08:36  ch03_mystruts_03\src\dao\impl\
     文件        1760  2011-07-29 06:36  ch03_mystruts_03\src\dao\impl\HouseDAOImpl.java
     文件         400  2011-07-29 10:04  ch03_mystruts_03\src\dao\impl\HouseTypeDAOImpl.java
............此处省略105个文件信息

评论

共有 条评论