jsp_三个重要文件

taglib.jsp

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/><!-- 获得上下文 -->

script.jsp

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<script type="text/javascript" src="${ctx}/commons/js/freeocs.js"></script>
<script type="text/javascript">var enPoint='${ctx}';</script>
<script type="text/javascript" src="${ctx}/commons/js/publics.js"></script>

style.jsp
<link href="${ctx}/commons/css/default.css" type="text/css" rel="stylesheet"/>

你可能感兴趣的:(jsp)