weixin_43005085
2019-05-11 10:05
采纳率: 28.6%
浏览 387
已采纳

为何在Tomcat中配置了虚拟映射,jsp文件依然找不到图片?

为何在Tomcat中配置了虚拟映射,jsp文件依然找不到图片?

<%--
  Created by IntelliJ IDEA.
  User: zhangzq
  Date: 2019/1/5
  Time: 13:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="application/msword">

    <title>Insert title here </title>
    <script type="application/javascript" src="${pageContext.request.contextPath}/js/jquery-1.12.4.js"></script>
</head>
<body>


<img src="/imgurl/fl.jpg" alt="11">


<script type="application/javascript">
</script>
</body>
</html>

图片说明图片说明

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题