<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <% // 获取当前项目的上下文路径,例如在部署到服务器后,可能是项目名称对应的路径部分,后续用于构建完整的资源访问路径等。 String path = request.getContextPath(); // 构建项目的基础路径,包括协议(如http或https)、服务器名称、服务器端口以及上下文路径,用于准确地定位项目中的各种资源,比如样式表、脚本文件、图片等资源的引用地址都会基于这个基础路径来构建。 String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> 车次列表
添加车次 共有数据:${trainList.size()}
序号 车次 起始站 终点站 开车时间 到达时间 票价 剩余座位数 操作
${status.index + 1} ${allTrain.trainNumber} ${allTrain.startStation} ${allTrain.endStation} ${allTrain.startTime} ${allTrain.endTime} ${allTrain.price} ${allTrain.seatNumber}