-
大小: 6.02MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-10-03
- 語言: Java
- 標(biāo)簽: 畢業(yè)設(shè)計(jì)??JSP??論文??源碼??
資源簡介
畢業(yè)設(shè)計(jì)-售后服務(wù)管理系統(tǒng)
結(jié)構(gòu):JSP&SQLServer
包括:
畢業(yè)設(shè)計(jì)論文
工程源碼+數(shù)據(jù)庫文件
PPT演示
系統(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();
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????4111??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\attend\add.jsp
?????文件???????7572??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\attend\index.jsp
?????文件???????2362??2009-04-30?22:09??售后服務(wù)管理系統(tǒng)\shff\admin\attend\s.jsp
?????文件???????3405??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\attend\sinfo.jsp
?????文件???????2728??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\dep\index.jsp
?????文件???????5296??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\emp\add.jsp
?????文件???????8245??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\emp\index.jsp
?????文件???????2364??2009-04-30?22:08??售后服務(wù)管理系統(tǒng)\shff\admin\emp\s.jsp
?????文件???????3893??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\emp\sinfo.jsp
?????文件????????835??2009-04-30?22:36??售后服務(wù)管理系統(tǒng)\shff\admin\guestbook\default.jsp
?????文件???????8923??2009-04-30?22:49??售后服務(wù)管理系統(tǒng)\shff\admin\guestbook\index.jsp
?????文件???????3416??2009-04-30?22:36??售后服務(wù)管理系統(tǒng)\shff\admin\guestbook\replay.jsp
?????文件???????4132??2009-04-30?22:28??售后服務(wù)管理系統(tǒng)\shff\admin\hui\add.jsp
?????文件???????7692??2009-04-30?22:30??售后服務(wù)管理系統(tǒng)\shff\admin\hui\index.jsp
?????文件???????2361??2009-04-30?22:29??售后服務(wù)管理系統(tǒng)\shff\admin\hui\s.jsp
?????文件???????3248??2009-04-30?22:29??售后服務(wù)管理系統(tǒng)\shff\admin\hui\sinfo.jsp
?????文件???????2301??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\if
?????文件???????1227??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\if
?????文件???????9337??2009-04-30?22:48??售后服務(wù)管理系統(tǒng)\shff\admin\if
?????文件???????3857??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\if
?????文件???????5866??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\if
?????文件???????6221??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\images\Admin_st
?????文件????????876??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\images\bg.jpg
?????文件????????315??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\images\bt_login.gif
?????文件????????179??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\images\bullet.gif
?????文件??????20734??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\images\calendar.js
?????文件??????26508??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\images\Common.js
?????文件???????3143??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\images\date.js
?????文件????????835??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\images\default.jsp
?????文件????????897??2009-04-30?21:37??售后服務(wù)管理系統(tǒng)\shff\admin\images\first.gif
............此處省略342個(gè)文件信息
評論
共有 條評論