From 6f75d587334cb5a8094ca5642c51c2c48a5f4fd3 Mon Sep 17 00:00:00 2001 From: pw6qtp7hv <1197788089@qq.com> Date: Sun, 15 Dec 2024 16:02:08 +0800 Subject: [PATCH] Update booking.jsp --- .../WebContent/pages/user/booking.jsp | 267 ++++++++++-------- 1 file changed, 145 insertions(+), 122 deletions(-) diff --git a/ticketing-master/WebContent/pages/user/booking.jsp b/ticketing-master/WebContent/pages/user/booking.jsp index 44c4af7..600aff3 100644 --- a/ticketing-master/WebContent/pages/user/booking.jsp +++ b/ticketing-master/WebContent/pages/user/booking.jsp @@ -2,138 +2,161 @@ pageEncoding="UTF-8"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <% + // 获取当前项目的上下文路径,例如在部署到服务器后,可能是项目名称对应的路径部分,后续用于构建完整的资源访问路径等。 String path = request.getContextPath(); - String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; + // 构建项目的基础路径,包括协议(如http或https)、服务器名称、服务器端口以及上下文路径,用于准确地定位项目中的各种资源,比如样式表、脚本文件、图片等资源的引用地址都会基于这个基础路径来构建。 + String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> -
- - - - - - - - - - - - - - - -