• 大小: 11.35MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-12
  • 语言: Java
  • 标签: 售楼  

资源简介

帮别人写的毕业设计.售楼系统. jsp+struts1+jdbc 数据库使用的mysql

资源截图

代码片段和文件信息

package com.action;

import java.util.Collection;
import java.util.List;

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

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.actionForm.HouseInfoForm;
import com.dao.HouseInfoDAO;

public class HouseInfoAction extends Action{

  private HouseInfoDAO houseInfoDAO = null;
    public HouseInfoAction() {
        this.houseInfoDAO = new HouseInfoDAO();
    }

 public ActionForward execute(ActionMapping mapping ActionForm form
             HttpServletRequest request
             HttpServletResponse response) {
 
String action =request.getParameter(“action“);
System.out.println(“\nbook*********************action=“+action);
if(action==null||““.equals(action)){
request.setAttribute(“error““您的操作有误!“);
return mapping.findForward(“error“);
}else if(action.equals(“queryHouseInfoList“)){
return queryHouseInfoList(mapping form request response);
}else if(action.equals(“queryHouseInfoListByAdmin“)){
return queryHouseInfoListByAdmin(mapping form request response);
}else if(action.equals(“modifyHouseQuery“)){
return modifyHouseQuery(mapping form request response);
}else if(action.equals(“deleteHouse“)){
return deleteHouse(mapping form request response);
}else if(action.equals(“modifyHouseInfo“)){
return modifyHouseInfo(mapping form request response);
}else if(action.equals(“addHouseInfo“)){
return addHouseInfo(mapping form request response);
}else if(action.equals(“saleHouse“)){
return saleHouse(mapping form request response);
}
else{
request.setAttribute(“error““操作失败!“);
return mapping.findForward(“error“);
}
}
 
 
 @SuppressWarnings(“unchecked“)
public ActionForward queryHouseInfoList(ActionMapping mapping ActionForm form
             HttpServletRequest request
             HttpServletResponse response){
 Collection houseInfoList = houseInfoDAO.query();
 request.setAttribute(“houseInfoList“ houseInfoList);
 return mapping.findForward(“main“);
 
 }
 public ActionForward saleHouse(ActionMapping mapping ActionForm form
 HttpServletRequest request
 HttpServletResponse response){
 String id = (String)request.getParameter(“id“);
 request.setAttribute(“id“ id);
 return mapping.findForward(“houseSale“);
 
 }
 
 
 
 
 @SuppressWarnings(“unchecked“)
 public ActionForward queryHouseInfoListByAdmin(ActionMapping mapping ActionForm form
 HttpServletRequest request
 HttpServletResponse response){
 Collection houseInfoList = houseInfoDAO.query();
 request.setAttribute(“houseInfoList“ houseInfoList);
 return mapping.findForward(“manager_main“);
 
 }
 @SuppressWarnings(“unchecked“)
 public Ac

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

     文件       2132  2014-05-28 22:06  saleHouse_1\.classpath

     文件        306  2014-05-28 23:52  saleHouse_1\.mymetadata

     文件       1417  2014-05-28 21:00  saleHouse_1\.project

     文件        500  2014-05-28 20:55  saleHouse_1\.settings\.jsdtscope

     文件        101  2014-05-28 21:00  saleHouse_1\.settings\org.eclipse.core.resources.prefs

     文件        330  2014-05-28 20:55  saleHouse_1\.settings\org.eclipse.jdt.core.prefs

     文件         49  2014-05-28 20:55  saleHouse_1\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2014-05-28 20:55  saleHouse_1\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       4403  2014-05-28 21:28  saleHouse_1\src\com\action\HouseInfoAction.java

     文件       2035  2014-05-28 21:50  saleHouse_1\src\com\action\HouseSaleAction.java

     文件       1021  2014-05-28 20:58  saleHouse_1\src\com\action\HouseTypeAction.java

     文件       2809  2014-05-28 20:58  saleHouse_1\src\com\action\ManagerAction.java

     文件        986  2014-05-28 20:58  saleHouse_1\src\com\action\NewsAction.java

     文件       2667  2014-05-28 20:58  saleHouse_1\src\com\action\OrderAction.java

     文件       5701  2014-05-28 20:58  saleHouse_1\src\com\action\UserAction.java

     文件       1536  2014-05-28 20:58  saleHouse_1\src\com\actionForm\HouseInfoForm.java

     文件       1436  2014-05-28 21:53  saleHouse_1\src\com\actionForm\HouseSaleForm.java

     文件        420  2014-05-28 20:58  saleHouse_1\src\com\actionForm\HouseTypeForm.java

     文件        791  2014-05-28 20:58  saleHouse_1\src\com\actionForm\ManagerForm.java

     文件        888  2014-05-28 20:58  saleHouse_1\src\com\actionForm\NewsForm.java

     文件        672  2014-05-28 20:58  saleHouse_1\src\com\actionForm\OrderForm.java

     文件       1438  2014-05-28 20:58  saleHouse_1\src\com\actionForm\UserForm.java

     文件        130  2014-05-28 20:58  saleHouse_1\src\com\connDB.properties

     文件       1170  2014-05-28 20:58  saleHouse_1\src\com\core\ChStr.java

     文件       2643  2014-05-28 20:58  saleHouse_1\src\com\core\ConnDB.java

     文件       4188  2014-05-28 20:58  saleHouse_1\src\com\dao\HouseInfoDAO.java

     文件       1982  2014-05-28 21:54  saleHouse_1\src\com\dao\HouseSaleDAO.java

     文件       3269  2014-05-28 20:58  saleHouse_1\src\com\dao\HouseTypeDAO.java

     文件       1081  2014-05-28 20:58  saleHouse_1\src\com\dao\ManagerDAO.java

     文件         49  2014-05-28 20:58  saleHouse_1\src\com\dao\NewsDAO.java

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

评论

共有 条评论