码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Javaweb学生信息管理系统(Mysql+JSP+MVC+CSS)


    目录

    一.项目介绍

    二.运行效果

    1.登录界面

    2.主界面(点击学号修改学生信息)

    3.增加学生界面

    ?编辑

    三.项目目录结构

    ?四.代码展示

    1.jsp及css代码

    ?①登录界面代码(login.jsp)

    ②登录界面css(login.css)

    ③注册用户界面(register.jsp)

    ④注册用户界面css(index.css)

    ⑤修改密码界面(UpdateLoginID.jsp)

    ⑥注销用户界面(DeleteLoginID.jsp)

    ⑦登录成功主界面(index.jsp)

    ⑧登陆成功界面css(show.css)

    ⑨点击学号,修改学生信息界面(StudentInfo.jsp)

    ⑩增加学生信息(add.jsp)

    ?上传作业操作(UpAndDown.jsp)

    2.三层架构

    ①表示层Servlet

    ②业务逻辑层Service

    ③数据访问层Dao

    ④通用的数据库操作(DBUtils.java)

    3.JavaBean封装数据

    ①分页帮助类(Page.java)

    ②封装学生信息(Student.java)

    4.项目所需jar包

    五.数据库表格

    ①登录注册表格login

    ②学生信息表格student1


    一.项目介绍

    本系统主要实现对基于Javaweb学生信息管理系统所需的各项基本功能,能够对学生信息进行增删改查等功能,并可以实现用户注册、用户登陆等功能。

    数据库:Mysql

    开发工具:Eclipse

    开发环境:JDK+Tomcat

    二.运行效果

    1.登录界面

    2.主界面(点击学号修改学生信息)

    3.增加学生界面

    三.项目目录结构

    四.代码展示

    1.jsp及css代码

    ①登录界面代码(login.jsp)

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    	pageEncoding="UTF-8"%>
    
    
    
    
    
    
    学生信息管理系统-登录界面
    
    
    	

    用户登录 立即注册

    修改密码 注销用户
    <% String error = (String) request.getAttribute("error"); String error0 = (String) request.getAttribute("error0"); String error1 = (String) request.getAttribute("error1"); String error2 = (String) request.getAttribute("error2"); String error3 = (String) request.getAttribute("error3"); String error4 = (String) request.getAttribute("error4"); if (error != null) { if (error.equals("loginError")) { out.println("用户名或密码错误!登录失败!"); } else if (error.equals("nologinError")) { response.sendRedirect("QueryStudentByPageServlet"); } } if (error0 != null) { if (error0.equals("loginError")) { out.println("用户名或密码错误!修改失败!"); } else if (error0.equals("nologinError")) { if (error1 != null) { if (error1.equals("noupdateError")) { out.println("密码修改成功!"); } } } } if (error2 != null) { if (error2.equals("loginError")) { out.println("用户名或密码错误!注销失败!"); } else if (error2.equals("nologinError")) { if (error3 != null) { if (error3.equals("nodeleteError")) { out.println("账户注销成功!"); } } } } if (error4 != null) { if (error4.equals("noaddError")) { out.println("账户注册成功!"); } } %>
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85

    ②登录界面css(login.css)

    *{margin:0;padding:0;}
    a{text-decoration:none;color:#666;}
    a:hover{
    	text-decoration:underline;
    	color:E4393C;
    }
    html,body
    {
    	font:12px/150% Arial,Verdana;
    }
    
    .wrap{
    	width:1000px;
    	margin:0 auto;
    }
    .left{
    	float:left;
    }
    
    .content{
    	background:url(../image/login.jpg);
    	background-size: cover;
    	width:1280px;
    	height:559px;
    }
    
    .login-frame{
    	margin:50px 5% 50px 5%;
    	float:right;
    	padding:60px;
    	background:white;
    	background-color:rgba(255,255,255,0.9);
    	border-radius:25px;
    	order-right:1px #bdbdbd solid;
    	width:280px;
    	height:230px;
    }
    
    
    .login-frame h2{
    	font-size:25px;
    	height:40px;
    	margin-buttom:25px;
    }
    .login-frame h2 a{
    	font-size:15px;
    	color:#59c2c5;
    	padding-left:20px;
    	background:url(../image/icon5.jpg)no-repeat;
    }
    
    .login-frame .item{
    	height:60px;
    	margin-buttom:40px;
    }
    
    .login-frame .item input{
    	line-height:40px;
    	width:260px;
    	border:none;
    	border-bottom: 1px solid #59c2c5;
    }
    
    .login-btn{
    	display:block;
    	height:50px;display:block;
    	height:50px;
    	color:#fff;
    	background:#59c2c5;
    	width:265px;
    	font-size:16px;
    	line-height:30px;
    	text-align:center;
    	border-radius:10px;
    	border:none;
    	color:#fff;
    	background:#59c2c5;
    	width:265px;
    	font-size:16px;
    	line-height:30px;
    	text-align:center;
    	border-radius:10px;
    	border:none;
    }
    .login-frame .item1{
    	dislpay:flex;
    	justify-content: space-between;
    	margin-top:1 rem;
    }
    .login-frame .item1 a{
    	line-height:40px;
    	font-size:1.1rem;
    	margin-top:5 rem;
    	padding:1rem 3rem;
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95

    ③注册用户界面(register.jsp)

    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    
    
    
    
    
    
    	
    	
    注册账号
    
    
    	

    用户注册





    返回 <% String error4 = (String) request.getAttribute("error4"); if (error4!= null) { if (error4.equals("addError")) { out.println("注册失败!账户名已经存在!"); } } %>
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59

    ④注册用户界面css(index.css)

    *{margin:0;padding:0;}
    html,body
    {
    	font:12px/150% Arial,Verdana;
    }
    .content{
    	background:url(../image/login.jpg);
    	background-size: cover;
    	width:1280px;
    	height:559px;
    }
    .box{
    	margin:60px 18% 60px 18%;
    	float:right;
    	padding:30px;
    	background:white;
    	background-color:rgba(255,255,255,0.9);
    	border-radius:15px;
    	
    }
    .item{
    	height:60px;
    	margin-buttom:40px;
    }
    .item input{
    	line-height:40px;
    	width:260px;
    	border:none;
    	border-bottom: 1px solid #59c2c5;
    	border-radius:3px;
    }
    .item1{
    	font-size:15px;
    	height:40px;
    }
    .btn{
    	display:block;
    	height:50px;
    	color:#fff;
    	background:#59c2c5;
    	width:265px;
    	font-size:16px;
    	line-height:30px;
    	text-align:center;
    	border-radius:10px;
    	border:none;
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47

    ⑤修改密码界面(UpdateLoginID.jsp)

  • 相关阅读:
    c语言中你经常遗忘的知识点汇总
    刷题笔记(牛客java选择题)
    Java Web 7 JavaScript 7.6 DOM
    数据结构——C语言实现String字符串操作
    从 0 开始手把手带你搭建一套规范的 Vue3.x 项目工程环境
    RabbitMQ系列【7】消息可靠性之发布确认、退回机制
    SpringBoot 使用与介绍
    你掉进过新技术的“大坑”吗?
    元素转换(四种)
    C++异常
  • 原文地址:https://blog.csdn.net/m0_67402341/article/details/126801805
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号