实现base标签中有绝对路径
base标签
1 <base href="<%=basePath%>">
实现base标签的绝对路径,代码如下:
1 <% 2 String path = request.getContextPath(); 3 String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() 4 + path + "/"; 5 %>