摘要: 查询不到跳转到该界面,其实差不多 <%@ page language= "java" contentType= "text/html; charset=UTF-8" pageEncoding= "UTF-8" %><!DOCTYPE html><html xmlns="http://www.w3.o 阅读全文
posted @ 2024-04-19 22:52 涨涨涨张 阅读(5) 评论(0) 推荐(0) 编辑
摘要: <%@ pag主界面e language= "java" contentType= "text/html; charset=UTF-8" pageEncoding= "UTF-8" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/html"> 阅读全文
posted @ 2024-04-19 22:52 涨涨涨张 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 查询public class Sub { public ArrayList<SubwayBean> ArrayTransferStation(String station1, String station2){ ArrayList<SubwayBean> resultArray = new Arra 阅读全文
posted @ 2024-04-19 22:52 涨涨涨张 阅读(27) 评论(0) 推荐(0) 编辑
摘要: jsp界面 <%@ page import="com.DB" %><%@ page import="java.util.ArrayList" %><%@ page language= "java" contentType= "text/html; charset=UTF-8" pageEncodin 阅读全文
posted @ 2024-04-19 22:52 涨涨涨张 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 地铁路线查询@WebServlet("/SubwayLine")public class SubwayLine extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse resp) t 阅读全文
posted @ 2024-04-19 22:52 涨涨涨张 阅读(3) 评论(0) 推荐(0) 编辑
摘要: @WebServlet("/SubwayMain")public class SubwayMain extends HttpServlet { @Override public void init() throws ServletException { } @Override protected v 阅读全文
posted @ 2024-04-19 22:52 涨涨涨张 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 连接数据库 public class DB { public Connection conn = null; public Statement stmt = null; public ResultSet rs = null; String url = "jdbc:mysql://localhost: 阅读全文
posted @ 2024-04-19 22:51 涨涨涨张 阅读(3) 评论(0) 推荐(0) 编辑