⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chgaction.jsp~3~

📁 教学管理系统的JAVA实现代码
💻 JSP~3~
字号:
<%@page contentType="text/html; charset=GBK"%>
<%request.setCharacterEncoding("GB2312");%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>stu_reg</title>
</head>

<jsp:useBean id="show" class="base.page.Show" scope="page"/>
<jsp:useBean id="stu" scope="page" class="base.Student"/>

  <body bgcolor="#ffffff">
  <%
  stu.setName(request.getParameter("name"));
  stu.setId((String)session.getAttribute("name"));
  stu.setDepartment(request.getParameter("department"));
  stu.setTeacher(request.getParameter("teacher"));
  stu.setPassword(request.getParameter("password"));
  String rpassword = request.getParameter("rpassword");
    out.println(stu.getName());
    out.println(stu.getId());
    out.println(stu.getTeacher());
    out.println(stu.getPassword());
    out.println(stu.getDepartment());

    if (rpassword.equals(stu.getPassword())) {
      out.println(stu.updateStu());
      out.print("<script>alert('修改成功!');document.location='index.jsp';</script>");

    }
    else
      out.print(show.errorBox("修改错误", "修改错误"));
  %>
  </body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -