资源简介
概述:实现登录功能,用户输入帐号和密码,通过form表单提交至后台处理,查询数据库,如果用户名和密码均正确,则弹框提示用户登录成功,否则提示登录失败。
开发工具:eclipse Mars.2 Release (4.5.2)
服务器 :apache-tomcat-7.0.68
数据库:MySql
前台源码:用到了简单的 bootstrap 和 jquery
后台代码:使用了servlet
开发工具:eclipse Mars.2 Release (4.5.2)
服务器 :apache-tomcat-7.0.68
数据库:MySql
前台源码:用到了简单的 bootstrap 和 jquery
后台代码:使用了servlet
代码片段和文件信息
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License Version 2.0
* (the “License“); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package mypackage;
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;
/**
* Simple servlet to validate that the Hello World example can
* execute servlets. In the web application deployment descriptor
* this servlet must be mapped to correspond to the link in the
* “index.html“ file.
*
* @author Craig R. McClanahan
*/
public final class Hello extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* Respond to a GET request for the content produced by
* this servlet.
*
* @param request The servlet request we are processing
* @param response The servlet response we are producing
*
* @exception IOException if an input/output error occurs
* @exception ServletException if a servlet error occurs
*/
@Override
public void doGet(HttpServletRequest request
HttpServletResponse response)
throws IOException ServletException {
response.setContentType(“text/html“);
PrintWriter writer = response.getWriter();
writer.println(““);
writer.println(““);
writer.println(“tle>Sample Application Servlet Page tle>“);
writer.println(““);
writer.println(““);
writer.println(““);
writer.println(““);
writer.println(““);
writer.println(““);
writer.println(“ “);
writer.println(““);
writer.println(“Sample Application Servlet
“);
writer.println(“This is the output of a servlet that is part of“);
writer.println(“the Hello World application.“);
writer.println(“ “);
writer.println(“ “);
writer.println(“
“);
writer.println(““);
writer.println(““);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 838 2017-06-25 11:45 javaweb\mysql数据库\test.sql
文件 305 2020-09-11 11:39 javaweb\readme.txt
文件 955 2019-05-22 12:36 javaweb\sourcecode\mysqlTest\.classpath
文件 1042 2017-06-25 10:12 javaweb\sourcecode\mysqlTest\.project
文件 567 2017-06-25 10:12 javaweb\sourcecode\mysqlTest\.settings\.jsdtscope
文件 364 2017-06-25 10:12 javaweb\sourcecode\mysqlTest\.settings\org.eclipse.jdt.core.prefs
文件 479 2017-06-25 10:12 javaweb\sourcecode\mysqlTest\.settings\org.eclipse.wst.common.component
文件 345 2019-05-22 12:36 javaweb\sourcecode\mysqlTest\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2017-06-25 10:12 javaweb\sourcecode\mysqlTest\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2017-06-25 10:12 javaweb\sourcecode\mysqlTest\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 3860 2019-06-02 10:46 javaweb\sourcecode\mysqlTest\build\classes\com\test\LoginServlet.class
文件 3640 2019-05-30 14:45 javaweb\sourcecode\mysqlTest\src\com\test\LoginServlet.java
文件 141182 2017-06-25 10:19 javaweb\sourcecode\mysqlTest\WebContent\css\bootstrap.css
文件 1676 2017-06-25 11:26 javaweb\sourcecode\mysqlTest\WebContent\index.jsp
文件 70843 2017-06-25 10:19 javaweb\sourcecode\mysqlTest\WebContent\js\jquery.js
文件 39 2017-06-25 10:12 javaweb\sourcecode\mysqlTest\WebContent\me
文件 536609 2017-06-02 09:08 javaweb\sourcecode\mysqlTest\WebContent\WEB-INF\lib\mysql-connector-java-5.0.7-bin.jar
文件 1012 2017-06-25 10:47 javaweb\sourcecode\mysqlTest\WebContent\WEB-INF\web.xm
目录 0 2019-06-02 10:46 javaweb\sourcecode\mysqlTest\build\classes\com\test
目录 0 2019-06-02 10:46 javaweb\sourcecode\mysqlTest\build\classes\com
目录 0 2017-06-25 11:44 javaweb\sourcecode\mysqlTest\src\com\test
目录 0 2017-06-25 11:44 javaweb\sourcecode\mysqlTest\WebContent\WEB-INF\lib
目录 0 2019-06-02 10:46 javaweb\sourcecode\mysqlTest\build\classes
目录 0 2017-06-25 11:44 javaweb\sourcecode\mysqlTest\src\com
目录 0 2017-06-25 11:44 javaweb\sourcecode\mysqlTest\WebContent\css
目录 0 2017-06-25 10:19 javaweb\sourcecode\mysqlTest\WebContent\img
目录 0 2017-06-25 11:44 javaweb\sourcecode\mysqlTest\WebContent\js
目录 0 2017-06-25 11:44 javaweb\sourcecode\mysqlTest\WebContent\me
目录 0 2017-06-25 11:44 javaweb\sourcecode\mysqlTest\WebContent\WEB-INF
目录 0 2019-05-22 12:36 javaweb\sourcecode\mysqlTest\.settings
............此处省略888个文件信息
- 上一篇:jsp模拟酷狗官网源码(附数据库)
- 下一篇:物流管理系统源码(含数据库)56241
相关资源
- 法律咨询信息系统(java+jsp+sqlserver)
- Java快速开发平台源码(renren-fast)
- 锐聘学院QST青软JavaWeb十二个打包
- 3.3.6微信支付JAVA版demo
- 学生信息管理系统源码+mysql数据库
- javaweb网上购物系统源码(附数据库脚
- javaweb校园宿舍系统(附数据库脚本)
- JavaWeb书城项目(附数据库脚本)
- 基于JAVA_JSP电子书系统(源码+数据库
- Java网络编程知识点总结.xmind
- 一站式Java网络编程 BIO-NIO-AIO资料源码
- jsp讲解
- 基于SSH框架的JavaWeb项目—人员信息管
- javaweb实现的邮件收发系统(附数据库
- shine网上书城(jsp+mysql)
- Java 仿QQ(附客户端以及服务端源码)
- Java TCP IP Socket
- java定时发送邮件(基于quartz)
- Java Swing开发的《星际争霸》游戏
- java+数据库商品交易管理系统(附数据
- 使用java语言编译一个计算器
- java swing工资管理系统(源码+数据库
- JAVALibrary
- 微信企业号回调模式Java版
- 顺丰丰桥接口开发详细教程源码含下
- Java博客概要设计文档
- 药品进销存管理系统(论文范文_JSP
- 奖学金管理系统java+jsp+mysql
- 毕设参考——基于java酒店管理
- Java写的一个简单的字体更改程序
评论
共有 条评论