You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
564 B

<%@ page import="com.example.domain.Student" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>viewstudent</title>
</head>
<body>
<table>
<tr>
<td>学号</td>
<td>姓名</td>
<td>性别</td>
<td>专业</td>
</tr>
<tr>
<%
Student s = (Student)request.getAttribute("students");
%>
<td><%=s.getId()%></td>
<td><%=s.getName()%></td>
<td><%=s.getSex()%></td>
<td><%=s.getMajor()%></td>
</tr>
</table>
</body>
</html>