• 大小: 8.6MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-08
  • 语言: 数据库
  • 标签:

资源简介

只需将下载的文件导入到Myeclipse中就可以使用,已经连接了数据库,将数据库文件导入到Mysql中即可,里面用到了多种技术,有MVC和Struts2等,是初学者的好用的资料。

资源截图

代码片段和文件信息

package Action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import Bean.DayInfoBean;
import Bean.RecordManageBean;
import DB.DayInfo;
import Tool.CreatePage;

import com.opensymphony.xwork2.ActionSupport;

public class DayInfoManageAction extends ActionSupport{

private DayInfoBean dayinfobean;
private String pageNow;
private HttpServletRequest request;

public DayInfoBean getDayinfobean() {
return dayinfobean;
}
public void setDayinfobean(DayInfoBean dayinfobean) {
this.dayinfobean = dayinfobean;
}
public String getPageNow() {
return pageNow;
}
public void setPageNow(String pageNow) {
this.pageNow = pageNow;
}

/**
 * 查看所有日程
 */
public String listdayinfo(){

request=ServletActionContext.getRequest();
DayInfo dao=new DayInfo();

CreatePage model=new CreatePage();
int count=dao.pagecount();
if(getPageNow() == null){
pageNow=“1“;
}
model.setAllR(count);
model.setPerR(5);
model.setAllP();
model.setCurrentP(pageNow);
model.setPageInfo();
model.setPagelink(“ListDayInfo.action“);


List list=dao.queryByPage(pageNow);
request.setAttribute(“list“list);
request.setAttribute(“model“model);
return SUCCESS;

}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-06-29 09:50  056\
     文件        1560  2012-06-28 16:35  056\.classpath
     目录           0  2012-06-18 11:00  056\.myeclipse\
     文件         283  2012-06-28 09:49  056\.mymetadata
     文件        1409  2012-06-27 17:37  056\.project
     目录           0  2012-06-29 09:50  056\.settings\
     文件         500  2012-06-18 11:00  056\.settings\.jsdtscope
     目录           0  2012-06-29 09:50  056\.settings\.svn\
     文件         777  2012-06-29 09:39  056\.settings\.svn\all-wcprops
     文件         977  2012-06-29 09:39  056\.settings\.svn\entries
     目录           0  2012-06-26 18:08  056\.settings\.svn\prop-base\
     目录           0  2012-06-26 18:08  056\.settings\.svn\props\
     目录           0  2012-06-29 09:50  056\.settings\.svn\text-base\
     文件         500  2012-06-26 18:09  056\.settings\.svn\text-base\.jsdtscope.svn-base
     文件        1040  2012-06-29 09:39  056\.settings\.svn\text-base\com.genuitec.eclipse.j2eedt.core.prefs.svn-base
     文件         330  2012-06-26 18:09  056\.settings\.svn\text-base\org.eclipse.jdt.core.prefs.svn-base
     文件          49  2012-06-26 18:09  056\.settings\.svn\text-base\org.eclipse.wst.jsdt.ui.superType.container.svn-base
     文件           6  2012-06-26 18:09  056\.settings\.svn\text-base\org.eclipse.wst.jsdt.ui.superType.name.svn-base
     目录           0  2012-06-29 09:50  056\.settings\.svn\tmp\
     目录           0  2012-06-26 18:08  056\.settings\.svn\tmp\prop-base\
     目录           0  2012-06-26 18:08  056\.settings\.svn\tmp\props\
     目录           0  2012-06-29 09:39  056\.settings\.svn\tmp\text-base\
     文件        1040  2012-06-27 17:37  056\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件         330  2012-06-18 11:00  056\.settings\org.eclipse.jdt.core.prefs
     文件          49  2012-06-18 11:00  056\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2012-06-18 11:00  056\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2012-06-29 09:50  056\.svn\
     文件         331  2012-06-29 09:39  056\.svn\all-wcprops
     文件         657  2012-06-29 09:39  056\.svn\entries
     目录           0  2012-06-26 18:07  056\.svn\prop-base\
     目录           0  2012-06-26 18:07  056\.svn\props\
............此处省略335个文件信息

评论

共有 条评论

相关资源