• 大小: 11.51MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-07-07
  • 语言: Java
  • 标签:

资源简介

房地产信息公布与查询系统,包含完整代码,数据库,论文。用jsp实现

资源截图

代码片段和文件信息

package com.real_state.Action;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.sql.SQLException;
import java.util.Map;

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

import org.apache.struts2.interceptor.ServletResponseAware;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.real_state.Model.HouseInfo;
import com.real_state.Service.HouseInfoService;
import com.real_state.util.ShowDate;



public class InfoAction extends ActionSupport implements ServletResponseAware {
private HttpServletResponse response;
private Map session;
private String housename;
private String area;
private String price;
private String floor;
private String address;
private String describe;
private String status;
private String picture=““;
private String time;
private ShowDate showdate=new ShowDate();
private HouseInfo houseinfo=new HouseInfo();
private HouseInfoService housinfoservice=new HouseInfoService();
private String[] checkboxs={““};
private HouseInfo delete_info=new HouseInfo();
private HouseInfo display_info=new HouseInfo();
private String time1=““;
private String time2=““;

public String getTime2() {
return time2;
}
public void setTime2(String time2) {
this.time2 = time2;
}
public String getTime1() {
return time1;
}
public void setTime1(String time1) {
this.time1 = time1;
}
public String[] getCheckboxs() {
return checkboxs;
}
public void setCheckboxs(String[] checkboxs) {
this.checkboxs = checkboxs;
}
public String getHousename() {
return housename;
}
public void setHousename(String housename) {
this.housename = housename;
}

public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public String getFloor() {
return floor;
}
public void setFloor(String floor) {
this.floor = floor;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getDescribe() {
return describe;
}
public void setDescribe(String describe) {
this.describe = describe;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getPicture() {
return picture;
}
public void setPicture(String picture) {
this.picture = picture;
}

public String release() throws UnsupportedEncodingException FileNotFoundException
{
session=ActionContext.getContext().getSession();
response.setContentType(“text/html;charset=UTF-8“);
        response.setCharacterEncoding(“UTF-8“);//防止弹出的信息出现乱码
time=showdate.ShowTime();

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-03-14 15:40  毕设文档\
     目录           0  2011-07-06 14:55  毕设文档\cong\
     文件         610  2011-05-28 11:00  毕设文档\cong\.classpath
     目录           0  2011-07-06 14:55  毕设文档\cong\.myeclipse\
     文件         285  2011-05-28 10:56  毕设文档\cong\.mymetadata
     文件         240  2011-05-28 10:56  毕设文档\cong\.mystrutsdata
     文件        1493  2011-05-28 11:03  毕设文档\cong\.project
     目录           0  2011-07-06 14:55  毕设文档\cong\.settings\
     文件         500  2011-05-28 10:55  毕设文档\cong\.settings\.jsdtscope
     文件         336  2011-05-28 10:55  毕设文档\cong\.settings\org.eclipse.jdt.core.prefs
     文件          49  2011-05-28 10:55  毕设文档\cong\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2011-05-28 10:55  毕设文档\cong\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2011-07-06 14:55  毕设文档\cong\src\
     目录           0  2011-07-06 14:55  毕设文档\cong\src\com\
     目录           0  2011-07-06 14:55  毕设文档\cong\src\com\real_state\
     目录           0  2011-07-06 14:55  毕设文档\cong\src\com\real_state\Action\
     文件        6738  2011-05-23 16:19  毕设文档\cong\src\com\real_state\Action\InfoAction.java
     文件       13427  2011-05-23 21:30  毕设文档\cong\src\com\real_state\Action\UserAction.java
     目录           0  2011-07-06 14:55  毕设文档\cong\src\com\real_state\Model\
     文件         399  2011-05-21 14:31  毕设文档\cong\src\com\real_state\Model\AdminInfo.java
     文件        1601  2011-05-23 10:56  毕设文档\cong\src\com\real_state\Model\HouseInfo.java
     文件        1307  2011-05-23 19:20  毕设文档\cong\src\com\real_state\Model\UserInfo.java
     目录           0  2011-07-06 14:55  毕设文档\cong\src\com\real_state\Service\
     文件        3524  2011-05-23 19:34  毕设文档\cong\src\com\real_state\Service\HouseInfoService.java
     文件        5748  2011-05-23 21:14  毕设文档\cong\src\com\real_state\Service\UserService.java
     目录           0  2011-07-06 14:55  毕设文档\cong\src\com\real_state\util\
     文件         805  2011-05-23 20:27  毕设文档\cong\src\com\real_state\util\DbConnection.java
     文件        1455  2011-05-21 19:04  毕设文档\cong\src\com\real_state\util\ShowDate.java
     文件        2670  2011-05-23 21:28  毕设文档\cong\src\struts.xml
     目录           0  2011-07-06 14:55  毕设文档\cong\WebRoot\
     文件        1175  2011-05-21 17:59  毕设文档\cong\WebRoot\admin_main.jsp
............此处省略139个文件信息

评论

共有 条评论

相关资源