<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.io.*,java.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>站点查询</title>
</head>
<body>
<h1>站点查询</h1>
<form action = "t_search.1.jsp" method = "get">
<div style = "text-align:center"><h2>站点查询</h2></div>
<br>
<table border = "0" style = "border-collapse:collapse" align="center">
<tr><td><font color="red">*</font>
站点查询<input type = "text" name = "station" size = "20" maxlength = "10">
</td></tr>
</table>
<div style = "text-align:center">
<br><input type = "submit" value = "提交">
</div>
</form>
</body>
</html>
<%@page import="train.Train" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.io.*,java.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>站点查询</title>
</head>
<body>
<%
String station = request.getParameter("station");
Train main = new Train();
%>
<br>
<%
if(main.t_search(station).get(1)==null)
{
out.println("没有该站点");
}
else
{
out.println(main.t_search(station).get(0));
out.println(main.t_search(station).get(1));
}
%>
<br>
<button><a href = "main search.jsp">返回</a></button>
</html>