资源简介
JAVAWEB校园订餐系统项目源码.zip

代码片段和文件信息
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 2016-06-13 20:41 数据库\
文件 12490 2015-04-30 11:04 数据库\wsdc.sql
目录 0 2016-06-13 20:41 毕设源码\
目录 0 2015-04-30 11:02 毕设源码\wsdc\
文件 1495 2015-04-30 11:02 毕设源码\wsdc\.classpath
目录 0 2015-04-30 11:02 毕设源码\wsdc\.myeclipse\
目录 0 2015-04-30 11:02 毕设源码\wsdc\.myeclipse\profiler\
文件 876 2015-04-30 11:02 毕设源码\wsdc\.myeclipse\profiler\wsdc on MyEclipse Tomcat.xm
文件 286 2015-04-30 11:02 毕设源码\wsdc\.myme
文件 1410 2015-04-30 11:02 毕设源码\wsdc\.project
目录 0 2015-04-30 11:02 毕设源码\wsdc\.settings\
文件 500 2015-04-30 11:02 毕设源码\wsdc\.settings\.jsdtscope
文件 111 2015-04-30 11:02 毕设源码\wsdc\.settings\com.genuitec.eclipse.core.prefs
文件 1040 2015-04-30 11:02 毕设源码\wsdc\.settings\com.genuitec.eclipse.j2eedt.core.prefs
文件 86 2015-04-30 11:02 毕设源码\wsdc\.settings\org.eclipse.core.resources.prefs
文件 49 2015-04-30 11:02 毕设源码\wsdc\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2015-04-30 11:02 毕设源码\wsdc\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2015-04-30 11:02 毕设源码\wsdc\WebRoot\
目录 0 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\
文件 835 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\default.jsp
目录 0 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\
目录 0 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\
目录 0 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\classes\
文件 3875 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\classes\fckcontextmenu.js
文件 1422 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\classes\fckdocumentfragment_gecko.js
文件 1728 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\classes\fckdocumentfragment_ie.js
文件 12153 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\classes\fckdomrange.js
文件 2032 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\classes\fckdomrange_gecko.js
文件 4460 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\classes\fckdomrange_ie.js
文件 7691 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\classes\fckeditingarea.js
文件 1517 2015-04-30 11:02 毕设源码\wsdc\WebRoot\FCKeditor\editor\_source\classes\fckelementpath.js
............此处省略804个文件信息
相关资源
- java 毕业设计 进销存管理系统 源码
- Android分区工具包
- 药品进销存管理系统(论文范文_JSP
- Java写的一个简单的字体更改程序
- 尚硅谷Java视频Java8新特性视频教程
- 关于CommVault统一数据管理方案
- 基于CenGRP3.0 烟草行业企业整合解决方
- java并发编程实战高清版pdf
- java并发编程实战pdf
- 实现jsp页面二级下拉框联动,实时读
- 北师大学珠海校区实施SunONE数字校园
- Java-核心技术-36-讲李运华完.pdf
- 小工具,解决oschina码云svn文件夹不能
- Sun公司为中国客户提供Java架构咨询与
- 美国Holy Cross 医院使用Sun 解决方案对
- 立邦漆公司向Sun架构的移植预期使总
- 通用电气公司基于Sun 平台部署其全球
- jbpm(juel-api.jar)
- jstl 和 standard jar 包
- 验证全志R18的LCD+HDMI双屏异显
- jsp网站模板
- 《21天学通SQL Server》源码
- JSP多文件上传同时上传
- J2EE服务支持平台下融通供应商服务系
- Data Structures and Algorithm Analysis in Java
- Thinking In Java第五版
- think in java中文第五版
- JAVA JDK百度网盘地址
- jdk1.9安装包
- NCC-OpenAPI文档.zip
评论
共有 条评论