• 2020 10 28


    学生管理系统,学生信息修改界面:

    <%@ page language="java" contentType="text/ html; charset=UTF-8"
    pageEncoding="UTF-8" import = "java.util.*"%>
    <%@page import="bean.student"%>
    <%@page import="bean.tclass"%>
    <%@page import="bean.teacher"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8d">
    <title>Insert title here</title>
    </head>
    <body>
    <%
    teacher Ateacher=(teacher)request.getAttribute("Ateacher");
    if(Ateacher==null)
    {
    Ateacher=(teacher)session.getAttribute("Ateacher");
    }
    List<tclass> Atclass=(List<tclass>)request.getAttribute("Atclass");
    List<student> Astudent=(List<student>)request.getAttribute("Astudent");
    out.println(Ateacher.getName());
    session.setAttribute("Ateacher",Ateacher);
    request.setAttribute("Ateacher",Ateacher);
    session.setAttribute("Atclass",Atclass);
    request.setAttribute("Atclass",Atclass);
    session.setAttribute("Astudent",Astudent);
    request.setAttribute("Astudent",Astudent);
    %>
    <form action="Tsevlet?method=Tchange" method="post" onsubmit="return chech(this)">
    <table align="center" width="450">
    <tr>
    <td align="center" >
    <h2>修改个人信息</h2>
    <hr>
    </td>
    </tr>
    <tr>
    <td align="right">工号:</td>
    <td align="right"><%=Ateacher.getTunm()%></td>
    </tr>
    <tr>
    <td align="right">姓名:</td>
    <td><input type="text" value=<%=Ateacher.getName()%> name="name"/></td>
    </tr>
    <tr>
    <td align="right">性别:</td>
    <td><input type="text" value=<%=Ateacher.getSex()%> name="sex"/></td>
    </tr>
    <tr>
    <td align="right">学院:</td>
    <td><input type="text" value=<%=Ateacher.getSchool()%> name="school"/></td>
    </tr>
    <tr>
    <td align="right">职称:</td>
    <td><input type="text" value=<%=Ateacher.getJob()%> name="job"/></td>
    </tr>
    <tr>
    <td align="center" colspan="2">
    <input type="submit" value="确认">
    </td>
    </tr>
    <tr align="center"><a href="user.jsp">注销</a></tr>
    <br>
    <tr align="center"><a href="loginT.jsp">返回上一级</a></tr>
    <br>
    </table>
    </form>
    </body>
    </html>

  • 相关阅读:
    【java基础】方法2
    【Java基础】方法
    [java基础]数组
    [Java基础]循环结构3
    [java基础]循环结构2
    [java基础]循环结构1
    [java基础]分支结构(2)
    mybatis-config.xml简单笔记
    applicationContext.xml简单笔记
    spring-servlet.xml简单示例
  • 原文地址:https://www.cnblogs.com/fuxw4971/p/14159663.html
Copyright © 2020-2023  润新知