You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- 指定JSP页面使用Java语言, 并设置页面的内容类型为html以及字符编码为UTF-8 -->
<%
// 获取请求的上下文路径,用于构建应用的根路径
String path = request.getContextPath();
// 构建基础路径,包含协议、服务器名称、端口号和上下文路径,用于后续资源的路径构建
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!-- JSP脚本片段, 用于动态生成basePath变量 -->
<!DOCTYPE html>
<!-- 文档类型声明, 指定了HTML的版本 -->
<html>
<!-- HTML文档的根元素开始 -->
<head>
<!-- head元素开始, 用于包含文档的元数据 -->
<meta charset="UTF-8">
<!-- 指定页面的字符编码为UTF-8 -->
<title>WELCOME</title>
<!-- 设置页面标题为"WELCOME" -->
</head>
<!-- head元素结束 -->
<body>
<!-- body元素开始, 包含页面的可见内容 -->
<img width="1695px;" height="835px;" alt="" src="<%=basePath%>images/welcome.jpg">
<!-- img元素用于显示图片, 宽度和高度设置为1695像素和835像素, alt属性提供图片的替代文本, src属性通过之前定义的basePath变量构建图片的路径 -->
</body>
<!-- body元素结束 -->
</html>
<!-- HTML文档的根元素结束 -->