资源简介
系统采用JSP+ SQL+TOMCAT以B/S模式开发。系统主要实现了新房及二手房信息的发布,用户需求信息的发布、以及给用户提供一个房产信息的查询功能、和用户权限管理功能、房屋信息管理功能、留言反馈功能以及用户给各个新房供应信息评价功能

代码片段和文件信息
package com.action;
/**
* 管理员登陆 增加 修改 删除 删除登陆日志
*/
import java.io.IOException;
import java.util.List;
import java.util.StringTokenizer;
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 com.bean.AdminBean;
import com.bean.SystemBean;
import com.util.Constant;
import com.util.MD5;
public class AdminServlet extends HttpServlet {
/**
* Constructor of the object.
*/
public AdminServlet() {
super();
}
/**
* Destruction of the servlet.
*/
public void destroy() {
super.destroy(); // Just puts “destroy“ string in log
// Put your code here
}
/**
* The doGet method of the servlet.
*
* This method is called when a form has its tag value method equals to get.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
doPost(requestresponse);
}
/**
* The doPost method of the servlet.
*
* This method is called when a form has its tag value method equals to post.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doPost(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
response.setContentType(Constant.CONTENTTYPE);
request.setCharacterEncoding(Constant.CHARACTERENCODING);
try{
String method=request.getParameter(“method“).trim();
AdminBean loginbean = new AdminBean();
HttpSession session = request.getSession();
session.setMaxInactiveInterval(1200);
SystemBean systembean = new SystemBean();
String sysdir = systembean.getDir();
if(method.equals(“one“)){//admin登录
String username = request.getParameter(“username“);
String password = request.getParameter(“password“);
if(username == null||username.trim().equals(““)){
request.setAttribute(“message“ “请正确输入用户名!“);
request.getRequestDispatcher(sysdir+“/login.jsp“).forward(request response);
}
else if(password == null||password.trim().equals(““)){
request.setAttribute(“message“ “请输入密码!“);
request.getRequestDispatcher(sysdir+“/login.jsp“).forward(request response);
}
else{
String md5password = MD5.MD5(password);
String agent = request.getHeader(“user-agent“);
StringTokenizer st = new StringTokenizer(agent“;“);
String useros=st.nextToken();
String loginip = request.getRemot
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8438272 2015-03-20 15:26 021JSP二手房产系统\JSP二手房产系统录像.avi
文件 709 2008-04-02 21:14 021JSP二手房产系统\二手房\二手房\Esf\.classpath
文件 282 2009-08-01 20:48 021JSP二手房产系统\二手房\二手房\Esf\.myme
文件 1221 2008-04-02 21:16 021JSP二手房产系统\二手房\二手房\Esf\.project
文件 10175 2008-04-15 12:35 021JSP二手房产系统\二手房\二手房\Esf\src\com\action\AdminServlet.java
文件 6522 2008-04-02 21:13 021JSP二手房产系统\二手房\二手房\Esf\src\com\action\MemberManageServlet.java
文件 7947 2008-04-02 23:26 021JSP二手房产系统\二手房\二手房\Esf\src\com\bean\AdminBean.java
文件 13935 2008-04-02 23:25 021JSP二手房产系统\二手房\二手房\Esf\src\com\bean\NewsBean.java
文件 318 2008-04-02 21:13 021JSP二手房产系统\二手房\二手房\Esf\src\com\util\CheckCode.java
文件 1838 2008-04-02 21:13 021JSP二手房产系统\二手房\二手房\Esf\src\com\util\Common.java
文件 533 2008-04-02 21:13 021JSP二手房产系统\二手房\二手房\Esf\src\com\util\Constant.java
文件 2505 2008-04-02 21:16 021JSP二手房产系统\二手房\二手房\Esf\src\com\util\DBO.java
文件 650 2008-04-02 21:13 021JSP二手房产系统\二手房\二手房\Esf\src\com\util\Filter.java
文件 836 2008-04-02 21:13 021JSP二手房产系统\二手房\二手房\Esf\src\com\util\Log.java
文件 61 2014-02-27 17:03 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\admin\index.jsp
文件 88 2013-03-29 12:10 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\admin\login.jsp
文件 4375 2008-04-03 00:11 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\admin\tj\fw.jsp
文件 4376 2008-04-03 00:12 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\admin\tj\fw2.jsp
文件 4373 2008-04-03 00:14 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\admin\tj\fw3.jsp
文件 4374 2008-04-03 00:13 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\admin\tj\fw4.jsp
文件 3191 2008-04-03 01:12 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\admin\tj\xszj.jsp
文件 4370 2008-04-03 02:45 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\buy.jsp
文件 4420 2008-04-03 02:01 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\buyinfo.jsp
文件 947 2008-04-02 21:14 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\error.jsp
文件 835 2008-04-02 21:14 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\FCKeditor\default.jsp
文件 236 2008-04-02 21:14 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\FCKeditor\editor\css\behaviors\disablehandles.htc
文件 822 2008-04-02 21:14 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\FCKeditor\editor\css\behaviors\showtableborders.htc
文件 2040 2008-04-02 21:14 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\FCKeditor\editor\css\fck_editorarea.css
文件 2549 2008-04-02 21:14 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\FCKeditor\editor\css\fck_internal.css
文件 1514 2008-04-02 21:14 021JSP二手房产系统\二手房\二手房\Esf\WebRoot\FCKeditor\editor\css\fck_showtableborders_gecko.css
............此处省略651个文件信息
相关资源
- 基于Java的酒店管理系统源码(毕业设
- android毕业设计
- jsp+servlet+javabean+mysql党员信息管理系统
- 毕业设计-医院人事管理系统(源码
- 药品进销存管理系统(论文范文_JSP
- JSP+SQL音乐网站(毕业设计)
- JSP+MYSQL鞋城在线销售系统
- jsp+sqlserver库存管理系统精品毕业设计
- Android应用源码安卓版个人荣誉简历项
- Java酒店管理系统毕业设计含文档.ra
- Java坦克大战源码+论文,可用毕业设计
- java毕业设计学生综合测评系统
- 教师评价系统 java+SQL 毕业设计
- JSP服装销售系统(毕业设计)
- JSP+MYSQL飞机订票系统-毕业设计
- 个人信用卡管理系统毕业设计全套
- 基于Android的炸弹人游戏毕业设计
- JSP人事管理系统(毕业设计)
- java 网上商城系统 毕业设计
- JSP学生兼职家教系统--毕业设计
- 二手房屋交易系统
- JAVA+access综合测评系统毕业设计(源代
- 基于SSM的校园兼职平台毕业设计程序
- JSP+MYSQL兼职招聘系统
- JSP+SQL学生在线考试系统(毕业设计)
- JSP+SQL电影票预定系统(毕业设计)
- JAVA JSP企业车辆管理系统 源代码 论文
- Java斗地主游戏源码.zip
- java图书管理系统毕业设计(源代码
- 毕业设计电子政务系统包含PPT和说明
评论
共有 条评论