栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

基于javaweb+jsp的驾校信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap)

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

基于javaweb+jsp的驾校信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap)

基于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等均可配置运行

适用

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

            
    
    @RequestMapping("jiaolianEdit")
    public void edit(HttpServletResponse response, HttpServletRequest request) throws IOException {
        Jiaolian vo = new Jiaolian();
        vo.setId(Long.valueOf(Util.decode(request, "id")));
        vo.setJiaolianNo(Util.decode(request, "jiaolianNo"));
        vo.setJiaolianName(Util.decode(request, "jiaolianName"));
        vo.setJiaolianSex(Util.decode(request, "jiaolianSex"));
     *
     * @param response
     * @param request
     * @throws IOException
     */
    @RequestMapping("kaoshiDelete")
    public void delete(HttpServletResponse response, HttpServletRequest request) throws IOException {
        Serializable id = Util.decode(request, "id");
        kaoshiService.delete(Arrays.asList(id));
        this.redirectList(request, response);
    }

    
    @RequestMapping("kaoshiEdit")
    
    private void redirectList(HttpServletRequest request, HttpServletResponse response) throws IOException {
        //查询列和关键字
        String searchColumn = Util.decode(request, "searchColumn");
        String keyword = Util.decode(request, "keyword");
        Map params = new HashMap();//用来保存控制层传进来的参数(查询条件)
        params.put("searchColumn", searchColumn);//要查询的列
        params.put("keyword", keyword);//查询的关键字
        Map map = userService.list(params);
import com.demo.util.Util;
import com.demo.service.JiaolianService;
import com.demo.vo.Jiaolian;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.io.Serializable;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping
public class JiaolianController {

    @Autowired
    private JiaolianService jiaolianService;

    public void setXueyuanAge(String xueyuanAge) {
        this.xueyuanAge = xueyuanAge;
    }
    public String getXueyuanPhone() {
        return xueyuanPhone;
    }

    public void setXueyuanPhone(String xueyuanPhone) {
        this.xueyuanPhone = xueyuanPhone;
    }
    public String getXueyuanJiaolian() {
        return xueyuanJiaolian;
    }

    public void setXueyuanJiaolian(String xueyuanJiaolian) {
        this.xueyuanJiaolian = xueyuanJiaolian;



   男    
    
    @RequestMapping({"userGet", "userEditPre"})
    public void get(HttpServletResponse response, HttpServletRequest request) throws IOException {
        Serializable id = Util.decode(request, "id");//取出主键id
        User vo = userService.get(id);
        request.getSession().setAttribute("vo", vo);
        String to = request.getRequestURI().toLowerCase().contains("get") ? "info" : "edit";//判断是去详情显示页面还是编辑页面
        response.sendRedirect("user_" + to + ".jsp");
    }

    
            alert("姓名不能为空!");
            return false;
        }
        if (document.getElementById("xueyuanAge").value.trim().length == 0) {
            alert("年龄不能为空!");
            return false;
        }
        if (document.getElementById("xueyuanPhone").value.trim().length == 0) {
            alert("联系方式不能为空!");
            return false;
        }
        if (document.getElementById("xueyuanJiaolian").value.trim().length == 0) {
            alert("所属教练不能为空!");
            return false;
        }
        if (document.getElementById("xueyuanIndate").value.trim().length == 0) {
            alert("入校日期不能为空!");
                || ub == Character.UnicodeBlock.CJK_SYMBOLS_AND_PUNCTUATION
                || ub == Character.UnicodeBlock.HALFWIDTH_AND_FULLWIDTH_FORMS);
    }

    
    public static boolean isMessyCode(String strName) {
        java.util.regex.Pattern p = java.util.regex.Pattern.compile("\s*|t*|r*|n*");
        java.util.regex.Matcher m = p.matcher(strName);
        String after = m.replaceAll("");
        String temp = after.replaceAll("\p{P}", "");
        char[] ch = temp.trim().toCharArray();
        float chLength = 0;
        float count = 0;
        for (int i = 0; i < ch.length; i++) {
            char c = ch[i];

运行环境

Java≥6、Tomcat≥7.0、MySQL≥5.5

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

技术框架

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap

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

适用

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

功能说明

登录、注册、退出、用户模块、公告模块、教练模块、学员模块、考试模块的增删改查管理

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/826878.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号