项目路径
out里没有生成img文件夹,手动将img文件复制到out中
a.jsp
<%--
Created by IntelliJ IDEA.
User: U100926
Date: 2022/01/05
Time: 18:13
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>A</title>
</head>
<body>
<a href="b.jsp"><img src = "img/3.jpg"/></a>
</body>
</html>
b.jsp
<%--
Created by IntelliJ IDEA.
User: U100926
Date: 2022/01/05
Time: 18:13
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>B</title>
</head>
<body>
<h1>sssss</h1>
<tr>
<td><img src="img/1.jpeg"></td>
</tr>
<img src="img/2.png">
<img src="img/3.jpg">
</body>
</html>
a.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<a href="b.html"><img src = "img/3.jpg"/></a>
</body>
</html>
b.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>sssss</h1>
<tr>
<td><img src="img/1.jpeg"></td>
</tr>
<img src="img/2.png">
<img src="img/3.jpg">
</body>
</html>
点击图片,跳转到b.jsp