用<%@ include file=" "%>将含有taglib标签的jsp文件引入方法:
1、首先在jsp页面中加入:
<%@ include file="/WEB-INF/webpage/include/taglib.jsp"%>
注意要删除这几行代码:
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
还有:
<base href="<%=basePath%>">
2、在taglib.jsp文件中:
3、在jsp文件中引入路径:
<link href="${ctxStatic}/css/bootstrap.min.css" rel="stylesheet">
<link href="${ctxStatic}/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
<link href="${ctxStatic}/css/animate.min.css" rel="stylesheet">
<link href="${ctxStatic}/css/style.min.css" rel="stylesheet">
<link href="${ctxStatic}/css/login.min.css" rel="stylesheet">
最后附上我的包结构: