基于javaweb+jsp的学生宿舍管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap)

这是一个基于JavaWeb、JSP、MySQL、Servlet技术构建的学生宿舍管理系统,可结合SSM或SpringBoot进行扩展。适用于课程设计、大作业、毕业设计等场景。系统包括登录、注册、用户模块、公告模块、宿管员模块、宿舍和学生信息的全面管理功能。
摘要由CSDN通过智能技术生成

基于javaweb+jsp的学生宿舍管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap)

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap

基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可修改

开发工具:eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

    //提交之前进行检查,如果return false,则不允许提交
    function check() {
   
        //根据ID获取值
        if (document.getElementById("studentName").value.trim().length == 0) {
   
            alert("姓名不能为空!");
            return false;
        }
        if (document.getElementById("studentNo").value.trim().length == 0) {
   
            alert("学号不能为空!");
            return false;
        }
        if (document.getElementById("studentBuilding").value.trim().length == 0) {
   
            alert("楼栋不能为空!");
            return false;
        }
        if (document.getElementById("studentDormitory").value.trim().length == 0) {
   
            alert("宿舍不能为空!");
            return false;
        }
        if (document.getElementById("studentPhone").value.trim().length == 0) {
   
            alert("电话不能为空!");
public class NoticeController {
   

    @Autowired
    private NoticeService noticeService;

    /**
     * 增加公告
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("noticeAdd")
    public void add(HttpServletResponse response, HttpServletRequest request) throws IOException {
   
        Notice vo = new Notice();
    public void setList(List<T> list) {
   
        this.list = list;
    }

    public int getTotalRecord() {
   
        return totalRecord;
    }

    public void setTotalRecord(int totalRecord) {
   
        this.totalRecord = totalRecord;
    }

    //--分页逻辑
    //已知数据
    private int pageNum;//当前页,从请求那边传过来。
    private int pageSize;//每页显示的数据条数。
    //需要计算得来
            1=1
        </where>
    </select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="com.demo.dao.UserMapper">

    <resultMap id="BaseResultMap" type="com.demo.vo.User" >
            
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值