91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.58MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-26
  • 語言: Java
  • 標簽: JSP??

資源簡介

JSP學生評獎評優管理子系統 對你的JSP實戰有很大的幫助。

資源截圖

代碼片段和文件信息

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(“管理員“)){//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();

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????2097152??2012-06-10?03:48??092JSP學生評獎評優管理子系統\jsppjpy.mdf

?????文件????2097152??2012-06-07?16:33??092JSP學生評獎評優管理子系統\jsppjpy_log.ldf

?????文件?????391907??2012-06-08?19:03??092JSP學生評獎評優管理子系統\JSP學生評獎評優管理子系統錄像.rar

?????文件????????552??2012-06-06?10:17??092JSP學生評獎評優管理子系統\Pjpy\.classpath

?????文件????????285??2012-06-08?14:09??092JSP學生評獎評優管理子系統\Pjpy\.mymetadata

?????文件???????1222??2012-06-01?09:18??092JSP學生評獎評優管理子系統\Pjpy\.project

?????文件??????10218??2012-06-01?09:48??092JSP學生評獎評優管理子系統\Pjpy\src\com\action\AdminServlet.java

?????文件???????8775??2012-06-09?11:56??092JSP學生評獎評優管理子系統\Pjpy\src\com\bean\AdminBean.java

?????文件????????318??2012-06-05?04:35??092JSP學生評獎評優管理子系統\Pjpy\src\com\util\CheckCode.java

?????文件???????1838??2012-06-03?03:36??092JSP學生評獎評優管理子系統\Pjpy\src\com\util\Common.java

?????文件????????533??2012-06-10?01:39??092JSP學生評獎評優管理子系統\Pjpy\src\com\util\Constant.java

?????文件???????2640??2012-06-02?01:24??092JSP學生評獎評優管理子系統\Pjpy\src\com\util\DBO.java

?????文件????????650??2012-06-09?15:31??092JSP學生評獎評優管理子系統\Pjpy\src\com\util\Filter.java

?????文件????????792??2012-06-08?23:30??092JSP學生評獎評優管理子系統\Pjpy\src\com\util\MD5.java

?????文件???????4239??2012-06-02?13:26??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\cj\addcp.jsp

?????文件???????4239??2012-06-10?23:37??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\cj\addkc.jsp

?????文件???????2601??2012-06-04?14:31??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\cj\cp.jsp

?????文件???????2597??2012-06-06?21:54??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\cj\kc.jsp

?????文件???????2421??2012-06-07?07:51??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\iframe\foot.jsp

?????文件???????1227??2012-06-04?20:32??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\iframe\help.jsp

?????文件??????14226??2012-06-10?14:29??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\iframe\left.jsp

?????文件???????2880??2012-06-06?00:43??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\iframe\main.jsp

?????文件???????5901??2012-06-07?09:05??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\iframe\top.jsp

?????文件??????10889??2012-06-06?07:04??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\images\admin_m.swf

?????文件???????6221??2012-06-04?15:59??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\images\Admin_style.css

?????文件????????829??2012-06-02?04:46??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\images\bg.jpg

?????文件????????315??2012-06-04?01:39??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\images\bt_login.gif

?????文件????????179??2012-06-05?17:03??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\images\bullet.gif

?????文件??????20734??2012-06-11?04:57??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\images\calendar.js

?????文件??????26508??2012-06-10?22:12??092JSP學生評獎評優管理子系統\Pjpy\WebRoot\admin\images\Common.js

............此處省略189個文件信息

評論

共有 條評論