-
大小: 9.49MB文件類型: .zip金幣: 2下載: 0 次發(fā)布日期: 2023-11-09
- 語言: Java
- 標(biāo)簽:
資源簡介
主要功能有:實(shí)現(xiàn)對學(xué)生基本信息的導(dǎo)入、導(dǎo)出、學(xué)生的錄取、查詢、錄取學(xué)生的管理等功能。

代碼片段和文件信息
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?AdminAction?extends?HttpServlet?{
/**
?*?Constructor?of?the?object.
?*/
public?AdminAction()?{
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.getRemoteA
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\
?????文件????????1495??2011-05-16?19:38??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\.classpath
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\.myeclipse\
?????文件?????????285??2015-04-09?11:15??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\.myme
?????文件????????1222??2011-05-16?19:40??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\.project
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\
?????目錄???????????0??2015-04-09?11:20??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\action\
?????文件????????9100??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\action\AdminAction.java
?????文件????????6058??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\action\LoginAction.java
?????目錄???????????0??2015-04-09?11:20??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\bean\
?????文件????????7947??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\bean\AdminBean.java
?????文件???????14530??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\bean\MemberBean.java
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\csgw\
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\csgw\action\
?????文件????????3989??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\csgw\action\HzpsAction.java
?????文件??????????80??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\csgw\ApplicationResources.properties
?????目錄???????????0??2015-04-09?11:20??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\util\
?????文件?????????533??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\util\Constant.java
?????文件????????2635??2015-04-09?11:16??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\util\DBO.java
?????文件?????????650??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\util\Filter.java
?????文件?????????836??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\src\com\util\Log.java
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\WebRoot\
?????目錄???????????0??2015-04-09?11:20??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\WebRoot\admin\
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\WebRoot\admin\affiche\
?????文件????????4054??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\WebRoot\admin\affiche\edit.jsp
?????文件????????4365??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\WebRoot\admin\affiche\index.jsp
?????目錄???????????0??2015-04-09?11:19??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\WebRoot\admin\guestbook\
?????文件????????8790??2011-05-16?19:37??045JSP招生管理系統(tǒng)\招生管理系統(tǒng)\zsgl\WebRoot\admin\guestbook\index.jsp
............此處省略732個文件信息
評論
共有 條評論