-
大小: 1.11MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-08-29
- 語言: Java
- 標簽: 車輛??管理系統(tǒng)??設(shè)計??實現(xiàn)??
資源簡介
當今社會己進入信息社會時代。信息己經(jīng)受到社會的廣泛關(guān)注,被看作社會和科學技術(shù)發(fā)展的三大支柱(材料、能源、信息)。信息是管理的基礎(chǔ),是進行決策的基本依據(jù)。在一個組織里,信息己作為人力、物力、財力之外的第四種能源,占有重要的地位。然而,信息是一種非物質(zhì)的,有別于基本資源的新形式的資源。信息也是管理的對象,必須進行管理和控制。
本文主要介紹了基于卡式的小區(qū)車輛管理系統(tǒng)的設(shè)計,本系統(tǒng)主要采用JSP為編程語言,可以方便管理小區(qū)車輛管理需要。后臺主要包括車輛管理,停車卡管理,車位管理等功能。本系統(tǒng)操作簡單,使用方便

代碼片段和文件信息
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(“index.jsp“).forward(request?response);
}
else?if(password?==?null||password.trim().equals(““)){
request.setAttribute(“message“?“請輸入密碼!“);
request.getRequestDispatcher(“index.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.getRemoteAddr();
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????411??2013-11-03?21:20??.classpath
?????文件????????285??2013-11-03?21:16??.myme
?????文件???????1222??2013-11-03?21:17??.project
?????文件??????10135??2013-11-03?21:16??src\com\action\AdminServlet.java
?????文件??????14048??2013-11-03?21:16??src\com\action\CarServlet.java
?????文件???????7968??2013-11-03?21:17??src\com\bean\AdminBean.java
?????文件??????21408??2013-11-03?21:16??src\com\bean\CarBean.java
?????文件???????7604??2013-11-03?21:16??src\com\bean\SystemBean.java
?????文件????????318??2013-11-03?21:16??src\com\util\CheckCode.java
?????文件???????1838??2013-11-03?21:16??src\com\util\Common.java
?????文件????????533??2013-11-03?21:16??src\com\util\Constant.java
?????文件???????2635??2013-11-03?21:17??src\com\util\DBO.java
?????文件????????650??2013-11-03?21:16??src\com\util\Filter.java
?????文件????????792??2013-11-03?21:16??src\com\util\MD5.java
?????文件???????3384??2013-11-03?21:16??WebRoot\admin\car\edit.jsp
?????文件???????2404??2013-11-03?21:16??WebRoot\admin\car\index.jsp
?????文件???????2301??2013-11-03?21:16??WebRoot\admin\if
?????文件???????1227??2013-11-03?21:16??WebRoot\admin\if
?????文件??????11418??2013-11-03?21:16??WebRoot\admin\if
?????文件???????2991??2013-11-03?21:21??WebRoot\admin\if
?????文件???????5784??2013-11-03?21:21??WebRoot\admin\if
?????文件??????10889??2013-11-03?21:16??WebRoot\admin\images\admin_m.swf
?????文件???????6221??2013-11-03?21:16??WebRoot\admin\images\Admin_st
?????文件????????876??2013-11-03?21:16??WebRoot\admin\images\bg.jpg
?????文件????????315??2013-11-03?21:16??WebRoot\admin\images\bt_login.gif
?????文件????????179??2013-11-03?21:16??WebRoot\admin\images\bullet.gif
?????文件??????20734??2013-11-03?21:16??WebRoot\admin\images\calendar.js
?????文件??????26508??2013-11-03?21:16??WebRoot\admin\images\Common.js
?????文件???????3143??2013-11-03?21:16??WebRoot\admin\images\date.js
?????文件????????835??2013-11-03?21:16??WebRoot\admin\images\default.jsp
............此處省略139個文件信息
評論
共有 條評論