<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<% String path=request.getContextPath();
   String basepath=request.getScheme()+"://"+request.getServerName()+
   request.getServerPort()+path+"/";%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ include file="../includeHead.jsp"%> 
<head> 
<base herf="<%=basepath%>"/>         
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>历史清单查询</title>

</head>

basepath写在约束之前,base标签写在head中,截图如下:

basepath位置及使用

相关文章:

  • 2021-04-27
  • 2021-10-07
  • 2022-01-20
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-08-09
  • 2021-06-23
  • 2021-12-09
  • 2021-11-18
相关资源
相似解决方案