• 大小: 2.08MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-13
  • 语言: Java
  • 标签:

资源简介

jsp+servlet做的房产交易系统 jsp+servlet做的房产交易系统 vv jsp+servlet做的房产交易系统jsp+servlet做的房产交易系统 jsp+servlet做的房产交易系统

资源截图

代码片段和文件信息

package org.cs.trade.control;


import java.io.IOException;
import java.util.Date;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.cs.trade.service.IUserService;
import org.cs.trade.service.impl.UserService;
import org.cs.trade.utils.Today;

@SuppressWarnings(“all“)
/**
 * 用户添加房屋信息处理的Servlet
 */
public class AddInfo extends HttpServlet {

@Override
protected void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
// TODO Auto-generated method stub
IUserService usermanager = new UserService();
HttpSession session = request.getSession();
String username = (String)session.getAttribute(“username“);
String address = (String)request.getParameter(“address“);
String antrum = (String)request.getParameter(“antrum“);
String area = (String)request.getParameter(“area“);
String basices = (String)request.getParameter(“basices“);

String contentname = (String)request.getParameter(“contentname“);
String contentstyle = (String)request.getParameter(“contentstyle“);
String fitment = (String)request.getParameter(“fitment“);
String floornumber = (String)request.getParameter(“floornumber“);

String housestyle = (String)request.getParameter(“housestyle“);
String uselife = (String)request.getParameter(“uselife“);
String saleprice = (String)request.getParameter(“saleprice“);
String localarea = (String)request.getParameter(“localarea“);

String property = (String)request.getParameter(“property“);
String linkman = (String)request.getParameter(“linkman“);
String linkmethod = (String)request.getParameter(“linkmethod“);
String remark = (String)request.getParameter(“remark“).trim();
String logindate =Today.getDate();

String sql = “insert into information(usernameaddressantrumareabasices“ +
“contentnamecontentstylefitmentfloornumberhousestyleuselife“ +
“salepricelocalareapropertylinkmanlinkmethodremarklogindate) values(‘“ +
username+“‘‘“+address+“‘‘“+antrum+“‘“+area+“‘“+basices+“‘‘“+contentname+“‘“ +
“‘“+contentstyle+“‘‘“+fitment+“‘“+floornumber+“‘“+housestyle+“‘‘“+uselife+
“‘“+saleprice+“‘“+localarea+“‘‘“+property+“‘‘“+linkman+“‘‘“+linkmethod+“‘‘“+
remark+“‘‘“+logindate+“‘)“;
if(usermanager.addInformation(sql))
{
request.getRequestDispatcher(“../user/addok.jsp“).forward(request response);
}
}



}

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

     文件       1411  2009-07-01 20:48  备份二\trade\.project

     文件        288  2009-07-05 21:42  备份二\trade\.mymetadata

     文件        668  2009-07-06 19:03  备份二\trade\.classpath

     文件        500  2009-07-01 19:45  备份二\trade\.settings\.jsdtscope

     文件          6  2009-07-01 19:45  备份二\trade\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件         49  2009-07-01 19:45  备份二\trade\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件       1103  2009-07-01 22:34  备份二\trade\WebRoot\index.jsp

     文件       1933  2009-07-07 14:59  备份二\trade\WebRoot\admin\login.jsp

     文件       2072  2009-07-07 15:52  备份二\trade\WebRoot\admin\admin.jsp

     文件       1494  2009-07-07 10:28  备份二\trade\WebRoot\admin\navigat.jsp

     文件       5333  2009-07-07 15:53  备份二\trade\WebRoot\admin\userman.jsp

     文件       5199  2009-07-07 15:53  备份二\trade\WebRoot\admin\houseman.jsp

     文件       4340  2009-07-07 15:53  备份二\trade\WebRoot\admin\infoman.jsp

     文件        184  2009-07-06 21:40  备份二\trade\WebRoot\admin\logout.jsp

     文件       4047  2009-07-06 21:41  备份二\trade\WebRoot\admin\modifyuser.jsp

     文件       1311  2009-07-06 21:41  备份二\trade\WebRoot\admin\modifyok.jsp

     文件       1378  2009-07-06 21:41  备份二\trade\WebRoot\admin\modifyerror.jsp

     文件       1471  2009-07-06 21:42  备份二\trade\WebRoot\admin\news.jsp

     文件       2228  2009-07-07 11:36  备份二\trade\WebRoot\admin\addnews.jsp

     文件       2464  2009-07-07 11:35  备份二\trade\WebRoot\admin\modifyNews.jsp

     文件       7665  2009-07-07 11:33  备份二\trade\WebRoot\admin\modifyinfo.jsp

     文件       7716  2009-07-07 15:50  备份二\trade\WebRoot\user\addinfo.jsp

     文件       4078  2009-07-07 14:44  备份二\trade\WebRoot\user\modifyuser.jsp

     文件       7652  2009-07-07 10:56  备份二\trade\WebRoot\user\modifyinfo.jsp

     文件       1165  2009-07-06 15:18  备份二\trade\WebRoot\user\modifyok.jsp

     文件        357  2009-07-04 14:52  备份二\trade\WebRoot\user\modifyerror.jsp

     文件       1120  2009-07-05 18:25  备份二\trade\WebRoot\user\addok.jsp

     文件       2795  2009-07-06 21:37  备份二\trade\WebRoot\user\myinfos.jsp

     文件        553  2009-07-03 19:41  备份二\trade\WebRoot\jscript\time.js

     文件     784193  2009-07-01 21:26  备份二\trade\WebRoot\images\main.swf

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

评论

共有 条评论

相关资源