📄 find.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:directive.page import="student.Student"/>
<jsp:useBean id="show" scope="request" class="student.StudentDao">
<jsp:setProperty name="show" property="*" />
</jsp:useBean>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'find.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<br>
<center>
<font size=6 color=blue face=楷体_GB2312><b>查询到的学生信息</b></font>
<br><br>
<table width="80%" border="3" bgcolor="#0099CC">
<tr bgcolor="#009966" bordercolor="#990066">
<td><center>姓 名</center></td>
<td><center>年 龄</center></td>
<td><center>学 号</center></td>
<td><center>班 级</center></td>
</tr>
<c:forEach var="student" items="${studentList}">
<tr>
<td><center><c:out value="${student.studentName}"/></center></td>
<td><center><c:out value="${student.studentAge}"/></center></td>
<td><center><c:out value="${student.studentNum}"/></center></td>
<td><center><c:out value="${student.studentClass}"/></center></td>
</tr>
</c:forEach>
</table>
</center>
<br><br>
<center>
<input type=button style="width:80px;height:30px" value="返 回"
onClick="location.href='http://127.0.0.1:8080/StudentDBMS/student/studentDB.jsp'">
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -