JSP公用COMMON文件

head.jsp:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="company" value="${applicationScope.company}"/>
<link rel="shortcut icon" href="${ctx}/plugins/yz/web/resources/imgs/yzIco.png" />
<link type="text/css" href="${ctx}/plugins/yz/web/resources/css/yz.css" rel="stylesheet" />
<script type="text/javascript" src="${ctx}/plugins/yz/web/resources/js/contsants.js"></script>
<script type="text/javascript" src="${ctx}/resources/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${ctx}/plugins/yz/web/resources/js/common.js"></script>
<script>
active = "${sessionScope.active}";
ctx = "${ctx}";
</script>
原文地址:https://www.cnblogs.com/zrui-xyu/p/5328867.html