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

资源简介

本人当年的毕设源代码,后来作为优秀毕设展示。采用struts和hibernate框架,数据库mysql,开发工具myeclipse。导入即可运行,无任何bug

资源截图

代码片段和文件信息

package houses.Action;

import houses.base.Cars;
import houses.Dao.CarsServiceImpl;

import java.io.PrintWriter;
import java.util.Date;
import java.util.List;

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

import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings(“serial“)
public class CarsAction extends ActionSupport implements ServletRequestAware
ServletResponseAware {
 private Integer id;
     private String carowner;
     private String carspace;
     private String housenumber;
     private String licensenumber;
     private String contactway;
     private String carmsg;
     private Date enddate;
     
     

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getCarowner() {
return carowner;
}

public void setCarowner(String carowner) {
this.carowner = carowner;
}

public String getCarspace() {
return carspace;
}

public void setCarspace(String carspace) {
this.carspace = carspace;
}

public String getHousenumber() {
return housenumber;
}

public void setHousenumber(String housenumber) {
this.housenumber = housenumber;
}

public String getLicensenumber() {
return licensenumber;
}

public void setLicensenumber(String licensenumber) {
this.licensenumber = licensenumber;
}

public String getContactway() {
return contactway;
}

public void setContactway(String contactway) {
this.contactway = contactway;
}

public String getCarmsg() {
return carmsg;
}

public void setCarmsg(String carmsg) {
this.carmsg = carmsg;
}

public Date getEnddate() {
return enddate;
}

public void setEnddate(Date enddate) {
this.enddate = enddate;
}

private HttpServletRequest request;
private HttpServletResponse response;

public HttpServletRequest getRequest() {
return request;
}

public void setRequest(HttpServletRequest request) {
this.request = request;
}

public HttpServletResponse getResponse() {
return response;
}

public void setResponse(HttpServletResponse response) {
this.response = response;
}

@Override
public void setServletRequest(HttpServletRequest arg0) {
// TODO Auto-generated method stub
this.request = arg0;
}

@Override
public void setServletResponse(HttpServletResponse arg0) {
// TODO Auto-generated method stub
this.response = arg0;
}


private static int firstResult;
private int currentPage;
private int carsCount;
 
public int getCarsCount() {
return carsCount;
}

public void setCarsCount(int carsCount) {
this.carsCount = carsCount;
}

public int getCur

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

     文件       1620  2013-06-13 13:34  SmartHouse\.classpath

     文件        303  2013-06-13 13:34  SmartHouse\.mymetadata

     文件       1416  2013-02-06 23:16  SmartHouse\.project

     文件        500  2013-02-06 23:16  SmartHouse\.settings\.jsdtscope

     文件        703  2013-05-28 18:57  SmartHouse\.settings\org.eclipse.core.resources.prefs

     文件         49  2013-02-06 23:16  SmartHouse\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2013-02-06 23:16  SmartHouse\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件      30394  2013-05-28 19:16  SmartHouse\docs\houses.sql

     文件       2000  2013-05-28 19:55  SmartHouse\src\hibernate.cfg.xml

     文件       6773  2011-05-22 09:41  SmartHouse\src\houses\Action\CarsAction.java

     文件        429  2011-05-13 16:49  SmartHouse\src\houses\Action\CreateDatabase.java

     文件       2211  2011-04-09 16:06  SmartHouse\src\houses\Action\Custom_accountAction.java

     文件       6738  2013-05-28 21:26  SmartHouse\src\houses\Action\DianfeiAction.java

     文件         60  2013-05-16 21:33  SmartHouse\src\houses\Action\GongziAction.java

     文件      12570  2013-06-14 15:20  SmartHouse\src\houses\Action\HomesAction.java

     文件       3967  2013-06-13 14:54  SmartHouse\src\houses\Action\Login.java

     文件       6115  2011-05-18 18:15  SmartHouse\src\houses\Action\LvhuaAction.java

     文件       8274  2011-05-18 18:15  SmartHouse\src\houses\Action\MaintainAction.java

     文件       7492  2013-06-13 12:31  SmartHouse\src\houses\Action\NotifyAction.java

     文件      11150  2011-05-18 18:16  SmartHouse\src\houses\Action\PersonnelAction.java

     文件       2254  2011-05-18 18:16  SmartHouse\src\houses\Action\SearchAdmin.java

     文件       6734  2013-05-28 19:23  SmartHouse\src\houses\Action\ShuidianfeiAction.java

     文件       4526  2011-05-18 18:17  SmartHouse\src\houses\Action\UpdataAdmin.java

     文件       3089  2011-05-18 18:17  SmartHouse\src\houses\Action\UpdataPassword.java

     文件       6140  2013-05-16 20:14  SmartHouse\src\houses\Action\WuyefeiAction.java

     文件       6912  2011-05-18 18:18  SmartHouse\src\houses\Action\XunchaAction.java

     文件      10294  2011-05-18 18:18  SmartHouse\src\houses\Action\YezhuAction.java

     文件        687  2011-04-09 16:06  SmartHouse\src\houses\base\Admin.hbm.xml

     文件       1644  2011-04-09 16:06  SmartHouse\src\houses\base\Admin.java

     文件        424  2011-04-09 16:06  SmartHouse\src\houses\base\Admin_account.hbm.xml

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

评论

共有 条评论