zoukankan      html  css  js  c++  java
  • 202011 3

    浏览教师信息界面:

    <%@ 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="ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <%
    student Astudent=(student)session.getAttribute("Astudent");
    String tID = request.getParameter("tID");
    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="Saddc1.jsp" method="post" onsubmit="return chech(this)">
    <table align="center" width="450" border="1">
    <tr>
    <td align="center" colspan="5">
    <h2>教师信息</h2>
    </td>
    </tr>
    <tr aligh="center">
    <td>教师工号</td>
    <td>教师姓名</td>
    <td>教师性别</td>
    <td>教师学院</td>
    <td>教师职称</td>
    </tr>
    <%
    for(teacher p:Ateacher){
    if(tID.equals(p.getTunm())){

    %>
    <tr aligh="center">
    <td><%=p.getTunm() %></td>
    <td><%=p.getName() %></td>
    <td><%=p.getSex() %></td>
    <td><%=p.getSchool() %></td>
    <td><%=p.getJob() %></td>
    <br>
    </tr>
    <%
    }
    }
    %>
    <td><a href="user.jsp">注销</a></td>
    <td><a href="Slook.jsp">返回上一级</a></td>
    </table>
    </form>
    </body>
    </html>

  • 相关阅读:
    SQLyog连接mysql8,报错1251
    Oracle日期函数
    git 回退
    git新建分支并指定拉去远程分支
    git创建分支并拉去远端分支代码
    git创建空白分支
    Maven 本地仓库明明有jar包,pom文件还是报错解决办法(Missing artifact...jar)
    SqlHelper类
    ADO.NET中的模型及对象
    MVC过滤器---异常处理过滤器
  • 原文地址:https://www.cnblogs.com/fuxw4971/p/14203240.html
Copyright © 2011-2022 走看看