⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c04d5ec35f3c001d1beaa29818841073

📁 自己做的一个火车票售票网站是课程设计 用的是servlet+jsp 数据库是ms
💻
字号:
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="com.vo.*"%>
<%@ page import="java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>


		<title>My JSP 'show.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>
		<table width="80%" border="1">
			<tr>
				<td>
					车次号
				</td>
				<td>
					始发站
				</td>
				<td>
					终点站
				</td>
				<td>
					开车时间
				</td>
				<td>
					到站时间
				</td>
				<td>
					里程数
				</td>
				<td>
					列车类型
				</td>
			</tr>
			<%
				request.setCharacterEncoding("utf-8");
				Collection newCollection = (Collection) request
						.getAttribute("allCheciVO");
				Iterator it = newCollection.iterator();
				while (it.hasNext()) {
					CheciVO vo = (CheciVO) it.next();
					String number = vo.getCheciNumber();
					if (number == null) {
						response.sendRedirect("error.jsp");
					}
					String start = vo.getCheciStart();
					String end = vo.getCheciEnd();
					String startTime = vo.getCheciStartTime();
					String endTime = vo.getCheciEndTime();
					int length = vo.getCheciLength();
					String type = vo.getCheciType();
			%>
			<tr>
				<td><%=number%></td>
				<td><%=start%></td>
				<td><%=end%></td>
				<td><%=startTime%></td>
				<td><%=endTime%></td>
				<td><%=length%></td>
				<td><%=type%></td>
			</tr>

			<%
				}
			%>
		</table>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -