资源简介
图书馆管理系统ssm框架 本系统配有完整的源码、、开发教程、数据库文件、项目素材等详细材料

代码片段和文件信息
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.ComBean;
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(“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.
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 19757 2020-05-12 19:11 Java毕业设计大全目录.docx
目录 0 2020-05-12 19:46 图书馆图书管理系统\
文件 146 2016-08-12 15:33 图书馆图书管理系统\read.txt
目录 0 2020-05-12 19:46 图书馆图书管理系统\数据库\
文件 1048576 2012-05-06 03:43 图书馆图书管理系统\数据库\tsg_Data.MDF
文件 1048576 2012-05-06 03:43 图书馆图书管理系统\数据库\tsg_Log.LDF
目录 0 2020-05-12 19:46 图书馆图书管理系统\程序\
目录 0 2020-05-12 19:46 图书馆图书管理系统\程序\tsg\
文件 828 2016-08-12 15:41 图书馆图书管理系统\程序\tsg\.classpath
目录 0 2012-05-08 18:14 图书馆图书管理系统\程序\tsg\.myeclipse\
文件 282 2016-08-12 15:34 图书馆图书管理系统\程序\tsg\.myme
文件 1746 2016-08-12 15:34 图书馆图书管理系统\程序\tsg\.project
目录 0 2020-05-12 19:46 图书馆图书管理系统\程序\tsg\.settings\
文件 500 2016-08-12 15:34 图书馆图书管理系统\程序\tsg\.settings\.jsdtscope
文件 598 2016-08-12 15:34 图书馆图书管理系统\程序\tsg\.settings\org.eclipse.jdt.core.prefs
文件 447 2016-08-12 15:34 图书馆图书管理系统\程序\tsg\.settings\org.eclipse.wst.common.component
文件 252 2016-08-12 15:34 图书馆图书管理系统\程序\tsg\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2016-08-12 15:34 图书馆图书管理系统\程序\tsg\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2016-08-12 15:34 图书馆图书管理系统\程序\tsg\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2020-05-12 19:46 图书馆图书管理系统\程序\tsg\src\
目录 0 2020-05-12 19:46 图书馆图书管理系统\程序\tsg\src\com\
目录 0 2020-05-12 19:46 图书馆图书管理系统\程序\tsg\src\com\action\
文件 8935 2012-05-06 02:09 图书馆图书管理系统\程序\tsg\src\com\action\AdminAction.java
文件 7684 2012-05-06 03:24 图书馆图书管理系统\程序\tsg\src\com\action\ComAction.java
文件 10498 2012-05-06 02:09 图书馆图书管理系统\程序\tsg\src\com\action\NewsAction.java
目录 0 2020-05-12 19:46 图书馆图书管理系统\程序\tsg\src\com\bean\
文件 8009 2012-05-06 02:09 图书馆图书管理系统\程序\tsg\src\com\bean\AdminBean.java
文件 4538 2012-05-06 02:09 图书馆图书管理系统\程序\tsg\src\com\bean\ComBean.java
文件 2507 2012-05-06 02:09 图书馆图书管理系统\程序\tsg\src\com\bean\SystemBean.java
目录 0 2020-05-12 19:46 图书馆图书管理系统\程序\tsg\src\com\util\
文件 318 2012-05-06 02:09 图书馆图书管理系统\程序\tsg\src\com\util\CheckCode.java
............此处省略157个文件信息
相关资源
- [PHP MySQL]图书馆管理系统前后台全部代
- 6.SparkSQL下--Spark实战应用.pdf
- 电子图书管理系统
- Xposed提取微信数据库密码(微信6.6.
- netbeans个人通讯录
- 基于SSM及前后端分离的复习系统
- 旅游业信息化服务平台
- SSH+Spring Security+MySQL
- 网上订餐系统 SSM框架
- 2019最新银行卡bin表单、包含excel表,
- springmvc+spring+mybatis+mysql数据库整合读
- 用户同一时段不能重复登录类似QQMy
- SSM+mysql购书商城2018届毕设
- 网上订票系统
- 企业工单管理系统
- 基于SpringBoot2+Jpa+SpringSecurity+redis+Vue的
- SSM整合-商贸系统
- 基于vue全家桶nodejsexpressmysql实现的商
- SL会员商城
- oracle数据库 +springmvc框架 开发的增删
- 毕业设计体检预约系统-springmvc+mybat
- 医院预约挂号系统 数据库
- 数据库课程设计-学生信息管理系统
- 酒店客房信息管理系统+源码+设计报告
- 基于SSM框架的增删改查Ajax分页模糊查
- 简单酒店管理系统 swing+mysql
- 2019年最全的银行开户行联行号sql数据
- 医院信息管理系统完整项目
- 学籍管理系统源码
- 考勤系统 net sql server.rar
评论
共有 条评论