当前位置: 代码迷 >> Java Web开发 >> struts2遇到了一个难以解决的有关问题
  详细解决方案

struts2遇到了一个难以解决的有关问题

热度:205   发布时间:2016-04-17 00:28:22.0
struts2遇到了一个难以解决的问题
我用SSH2做一个简单的CRUD操作但是我遇到了一个问题,
我把我的Action给你们看看 
package org.shj.houseproject.house.action;

import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

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

import jxl.write.DateTime;

import org.apache.struts2.ServletActionContext;
import org.apache.struts2.interceptor.SessionAware;
import org.shj.houseproject.houseService.IHouseService;
import org.shj.houseproject.pojo.Area;
import org.shj.houseproject.pojo.House;
import org.shj.houseproject.pojo.Street;
import org.shj.houseproject.pojo.Users;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class HouseAction extends ActionSupport {
private IHouseService houseservice;
private List<House> listhouse;
private House house = new House();
private House house1 = new House();
private double startprice = 0;
private double endprice = 100000;
private int page = 1;
private int pagesize = 3;
private int total;
private int totalpage;
private int hid;
private Area area = new Area();
private List<Area> listarea;
private Users user;
private List<Street> listStreet;
private List<Users> listuser;

public Users getUser() {
return user;
}

public void setUser(Users user) {
this.user = user;
}

public List<Area> getListarea() {
return listarea;
}

public void setListarea(List<Area> listarea) {
this.listarea = listarea;
}

public Area getArea() {
return area;
}

public void setArea(Area area) {
this.area = area;
}

public House getHouse1() {
return house1;
}

public void setHouse1(House house1) {
this.house1 = house1;
}

public int getHid() {
return hid;
}

public void setHid(int hid) {
this.hid = hid;
}

public int getTotalpage() {
return totalpage;
}

public void setTotalpage(int totalpage) {
this.totalpage = totalpage;
}

public double getStartprice() {
return startprice;
}

public void setStartprice(double startprice) {
this.startprice = startprice;
}

public double getEndprice() {
return endprice;
}

public void setEndprice(double endprice) {
this.endprice = endprice;
}

public int getPage() {
return page;
}

public void setPage(int page) {
this.page = page;
}

public int getPagesize() {
return pagesize;
}

public void setPagesize(int pagesize) {
this.pagesize = pagesize;
}

public int getTotal() {
return total;
}

public void setTotal(int total) {
this.total = total;
}

public List<House> getListhouse() {
return listhouse;
}

public void setListhouse(List<House> listhouse) {
this.listhouse = listhouse;
}

public House getHouse() {
return house;
}

public void setHouse(House house) {
this.house = house;
}

public IHouseService getHouseservice() {
return houseservice;
}

public void setHouseservice(IHouseService houseservice) {
this.houseservice = houseservice;
}

public String listHouse() {
  相关解决方案