• 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>

  • 相关阅读:
    超强视频分割/剪辑软件:Ultra Video Splitter绿色便携版
    PAZU 4Fang WEB 打印控件
    PHP开源网站
    jQuery实现点击小图显示大图效果
    博观而约取,厚积而薄发
    jquery两边飘浮的对联广告
    图片或文字循环滚动JS代码收集
    降低站长成本 推荐8个免费或低廉小型建站工具
    市净率
    浅谈策略交易、系统交易和程式交易
  • 原文地址:https://www.cnblogs.com/fuxw4971/p/14203233.html
Copyright © 2020-2023  润新知