• 基于javaweb+mysql的jsp+servlet学生成绩管理系统(管理员、教师、学生)


    博主24h在线,想要源码文档部署视频直接私聊,9.9元拿走!

    基于javaweb+mysql的jsp+servlet学生成绩管理系统(管理员、教师、学生)(java+jsp+servlet+javabean+mysql+tomcat)

    运行环境

    Java≥8、MySQL≥5.7、Tomcat≥8

    开发工具

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

    适用

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

    功能说明 三个角色

    管理员:个人信息、课程管理、成绩管理、教师管理、学生管理

    教师:个人信息、课程管理、成绩管理、学生信息查看

    学生:人个信息管理、成绩查询

    技术框架

    JSP Servlet MySQL JDBC Tomcat CSS JavaScript bootstrap jquery

    基于javaweb+mysql的JSP+Servlet学生成绩管理系统(管理员、教师、学生)(java+jsp+servlet+javabean+mysql+tomcat)

    1. public class ServletEditCos extends HttpServlet{
    2. private Course course;
    3. private ServletFindAllCos servletFindAllCos=new ServletFindAllCos();
    4. private ServletSelectCos selectOne=new ServletSelectCos();
    5. private CourseServiceImpl courseServiceImpl=new CourseServiceImpl();
    6. public void doGet(HttpServletRequest request, HttpServletResponse response)
    7. throws ServletException, IOException {
    8. int courseID=Integer.parseInt(request.getParameter("courseID"));
    9. String courseName = request.getParameter("courseName");
    10. int courseCredit = Integer.parseInt(request.getParameter("courseCredit"));
    11. int courseHours = Integer.parseInt(request.getParameter("courseHours"));
    12. String courseTea = request.getParameter("courseTea");
    13. String coDate = request.getParameter("courseDate");
    14. Date courseDate = null;
    15. try {
    16. courseDate = new SimpleDateFormat("yyyy-MM-dd").parse(request.getParameter("courseDate"));
    17. } catch (ParseException e) {
    18. e.printStackTrace();
    19. }
    20. course=new Course(courseID,courseName,courseCredit,courseHours,courseTea,courseDate);
    21. int rs=courseServiceImpl.editCos(course,coDate);
    22. if(rs>0){
    23. request.setAttribute("msg", "修改成功!!");
    24. servletFindAllCos.doGet(request, response);
    25. // request.getRequestDispatcher("admin/addCourse.jsp").forward(request, response);
    26. }else{
    27. return "SF";
    28. }
    29. return null;
    30. }
    31. }
    32. public class ServletaddTeacher extends HttpServlet{
    33. private User user;
    34. private Teacher teacher;
    35. private UserServiceImpl userServiceImpl = new UserServiceImpl();
    36. private TeacherServiceImpl teacherServiceImpl =new TeacherServiceImpl();
    37. private ServletFindAllTea findTea=new ServletFindAllTea();
    38. public void doGet(HttpServletRequest request, HttpServletResponse response)
    39. throws ServletException, IOException {
    40. String teaNum = request.getParameter("teaNum");
    41. String teaName = request.getParameter("teaName");
    42. String pwd = request.getParameter("password");
    43. String teaSex = request.getParameter("teaSex");
    44. int teaAge = Integer.parseInt(request.getParameter("teaAge"));
    45. String teaCourse = request.getParameter("teaCourse");
    46. String major = request.getParameter("major");
    47. String department = request.getParameter("department");
    48. String phone = request.getParameter("phone");
    49. int roleID = Integer.parseInt(request.getParameter("role"));
    50. user = new User(teaNum, teaName, pwd, phone, roleID);
    51. teacher = new Teacher(teaNum, teaName, teaSex, teaAge, teaCourse, major,
    52. department);
    53. //验证是否存在该教师
    54. User rs=userServiceImpl.login(user);
    55. }

  • 相关阅读:
    高通量筛选检测方法-分子篇
    CKA考题 [k8s1.21]
    如何识别假爬虫?
    【总结】Java判断今天是不是周末的多种实现方式
    c高级day4(9.11)shell脚本(case ....in语句,循环语句,select ...in和case...In结合,辅助控制关键字,函数)
    PHP电视剧推荐系统可以用wamp、phpstudy运行定制开发mysql数 据库BS模式
    做了几年“斜杠青年”,我在ZStack立志做国产云计算的研发
    Leetcode.714 买卖股票的最佳时机含手续费
    写进简历的软件测试项目实战经验(包含电商、银行、app等)
    Golang Redis连接池封装
  • 原文地址:https://blog.csdn.net/PioneerOneLi/article/details/134278309