default.jsp

来自「Java的框架」· JSP 代码 · 共 36 行

JSP
36
字号
<% 	//required due to a bug in IE
		response.setHeader ("Cache-Control", "no-cache");
	 	response.setHeader ("Pragma", "no-cache");
	 	response.setDateHeader ("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%-- Include common set of tag library declarations for each layout --%>
<%@ include file="/common/taglibs.jsp"%>
<mcaps:userPreference key="theme" name="theme" scope="page"/>
<mcaps:userPreference key="menu" name="menu" scope="page"/>
<c:choose>
	<c:when test="${theme == 'revival'}">
		<c:choose>
			<c:when test="${menu == 'list'}">
				<c:import url="/decorators/revival_listmenu.jsp" />
			</c:when>
			<c:otherwise>
				<c:import url="/decorators/revival_coolmenu.jsp" />
			</c:otherwise>
		</c:choose>
	</c:when>
	<c:otherwise>
		<c:choose>
			<c:when test="${menu == 'list'}">
					<c:import url="/decorators/default_listmenu.jsp" />
			</c:when>
			<c:otherwise>
					<c:import url="/decorators/default_coolmenu.jsp" />
			</c:otherwise>
		</c:choose>
	</c:otherwise>
</c:choose>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?