zoukankan      html  css  js  c++  java
  • 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>

  • 相关阅读:
    C#中的正则表达式(1)
    sql link
    Repeater控件绑定数据、分页、数据操作,最佳代码
    存储过程事物
    sql db link string
    存储过程返回值
    net打包
    excel c# 输出
    常用的js验证数字,电话号码,传真,邮箱,手机号码,邮编,日期
    sql 大全
  • 原文地址:https://www.cnblogs.com/fuxw4971/p/14203233.html
Copyright © 2011-2022 走看看