资源简介
Java仿酷狗音乐官网源码,网页播放器,酷狗游戏,下载客户端,分类:乐库,电台,MV,资讯,美女秀场,音乐达人,推荐,排行榜,精选,好歌,抢先听等功能
代码片段和文件信息
package com.tian.cotrller;
import java.io.IOException;
import java.io.PrintWriter;
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.tian.entity.Admins;
import com.tian.entity.Record;
import com.tian.service.AdminService;
import com.tian.service.RecordService;
import com.tian.service.impl.AdminServiceImpl;
import com.tian.service.impl.RecordServiceImpl;
public class AdminLogin extends HttpServlet {
/**
* 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 {
response.setCharacterEncoding(“gbk“);
HttpSession session = request.getSession();
PrintWriter out = response.getWriter();
String name = request.getParameter(“name“);
String pwd = request.getParameter(“pwd“);
String ip = request.getRemoteAddr();
Record r = new Record(ipname);
RecordService rs = new RecordServiceImpl();
rs.recordInfo(r);
AdminService adminService = new AdminServiceImpl();
Admins admins = adminService.getAllAdminInfo(name pwd);
boolean result = false;
if(admins != null){
session.setAttribute(“admins“ admins);
result = true;
out.print(result);
out.close();
}
}
/**
* 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 {
this.doGet(request response);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-01-06 14:48 MF000027-Java仿酷狗音乐官网源码\
目录 0 2018-01-06 14:48 MF000027-Java仿酷狗音乐官网源码\KugouProject\
文件 836 2013-09-01 09:52 MF000027-Java仿酷狗音乐官网源码\KugouProject\.classpath
文件 1045 2013-09-01 09:52 MF000027-Java仿酷狗音乐官网源码\KugouProject\.project
目录 0 2017-08-06 02:12 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\
文件 503 2013-09-01 09:52 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\.jsdtscope
文件 395 2013-09-01 09:52 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\org.eclipse.jdt.core.prefs
文件 466 2013-09-01 09:52 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\org.eclipse.wst.common.component
文件 345 2013-09-01 09:52 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2013-09-01 09:52 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2013-09-01 09:52 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 64792 2016-11-18 10:53 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\www.9ymw.com.png
文件 3621836 2015-04-27 11:29 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\国内最大的免费商业源码下载平台.mht
文件 247 2016-11-10 16:09 MF000027-Java仿酷狗音乐官网源码\KugouProject\.settings\源码说明.txt
目录 0 2018-01-06 14:48 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\
文件 3936 2013-09-01 09:53 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\Admin.jsp
文件 18773 2013-09-01 09:53 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\Backstage.jsp
目录 0 2017-08-06 02:12 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\me
文件 39 2013-09-01 09:52 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\me
文件 64792 2016-11-18 10:53 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\me
文件 3621836 2015-04-27 11:29 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\me
文件 247 2016-11-10 16:09 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\me
文件 7632 2013-09-01 09:53 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\Register.jsp
文件 4843 2013-09-01 09:53 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\Succeed.jsp
目录 0 2017-08-06 02:12 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\WEB-INF\
目录 0 2017-08-06 02:12 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\WEB-INF\lib\
文件 17809 2013-09-01 09:56 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\WEB-INF\lib\jstl.jar
文件 446464 2013-09-01 09:55 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\WEB-INF\lib\mysql-connector-java-3.1.12-bin.jar
文件 351349 2013-09-01 10:03 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\WEB-INF\lib\standard.jar
文件 3747 2013-09-01 09:54 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\WEB-INF\web.xm
文件 64792 2016-11-18 10:53 MF000027-Java仿酷狗音乐官网源码\KugouProject\WebContent\WEB-INF\www.9ymw.com.png
............此处省略302个文件信息
- 上一篇:10个android项目-简单实用
- 下一篇:Java网络爬虫源码
评论
共有 条评论