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>

  • 相关阅读:
    php中防止SQL注入的方法
    谈谈asp,php,jsp的优缺点
    SSH原理与运用(一):远程登录
    优化MYSQL数据库的方法
    json_encode和json_decode区别
    静态方法与非静态方法的区别
    Java 异常的Exception e中的egetMessage()和toString()方法的区别
    $GLOBALS['HTTP_RAW_POST_DATA'] 和$_POST的区别
    HTML5开发,背后的事情你知道吗?
    使用C语言来实现模块化
  • 原文地址:https://www.cnblogs.com/fuxw4971/p/14203233.html
Copyright © 2011-2022 走看看