JSP 頁面使用 `
JSP 編譯階段找不到變量 `basePath`,導致 `
<%@ page contentType="text/html;charset=UTF-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" +
request.getServerName() + ":" +
request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>"> <!-- 此處 basePath 已在上方腳本片段定義 -->
...