• 2020 11 1


    修改个人信息界面:

    <%@ page language="java" contentType="text/ html; charset=UTF-8"
    pageEncoding="UTF-8" import = "java.util.*"%>
    <%@page import="bean.teacher"%>
    <%@page import="bean.tclass"%>
    <%@page import="bean.student"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <%
    student Astudent=(student)session.getAttribute("Astudent");
    if(Astudent==null)
    {
    Astudent=(student)session.getAttribute("Astudent");
    }
    List<tclass> Atclass=(List<tclass>)session.getAttribute("Atclass");
    List<tclass> Atclass1=(List<tclass>)session.getAttribute("Atclass1");
    List<teacher> Ateacher=(List<teacher>)session.getAttribute("Ateacher");
    out.println(Astudent.getName());
    session.setAttribute("Astudent",Astudent);
    request.setAttribute("Astudent",Astudent);
    session.setAttribute("Atclass",Atclass);
    request.setAttribute("Atclass",Atclass);
    session.setAttribute("Atclass1",Atclass1);
    request.setAttribute("Atclass1",Atclass1);
    session.setAttribute("Ateacher",Ateacher);
    request.setAttribute("Ateacher",Ateacher);
    %>
    <form action="Ssevlet?method=Schange" 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"><%=Astudent.getSunm()%></td>
    </tr>
    <tr>
    <td align="right">姓名:</td>
    <td><input type="text" value=<%=Astudent.getName()%> name="name"/></td>
    </tr>
    <tr>
    <td align="right">性别:</td>
    <td><input type="text" value=<%=Astudent.getSex()%> name="sex"/></td>
    </tr>
    <tr>
    <td align="right">学院:</td>
    <td><input type="text" value=<%=Astudent.getSclass()%> name="class"/></td>
    </tr>
    <tr>
    <td align="right">职称:</td>
    <td><input type="text" value=<%=Astudent.getMajor()%> name="major"/></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="loginS.jsp">返回上一级</a></tr>
    <br>
    </table>
    </form>
    </body>
    </html>

  • 相关阅读:
    增强MyEclipse提示功能
    Mysql安装配置,修改初试密码。
    在我的电脑里面创建图标
    popup non topmost
    多线程下载或上传数据限速
    SynchronizationContext
    linux运维笔记——常用命令详解diff
    linux运维笔记——curl
    linux下mysql的源码安装
    shell编程——变量的数值计算
  • 原文地址:https://www.cnblogs.com/fuxw4971/p/14203233.html
Copyright © 2020-2023  润新知