src/main/webapp/WEB-INF/jsp/site.jsp

changeset 45
cc7f082c5ef3
parent 43
9abf0bf44c7b
child 46
1574965c7dc7
equal deleted inserted replaced
44:835dd169642a 45:cc7f082c5ef3
28 <%@page import="de.uapcore.lightpit.Constants" %> 28 <%@page import="de.uapcore.lightpit.Constants" %>
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
31 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 31 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
32 32
33 <%-- Define an alias for the request path --%>
34 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/>
35
33 <%-- Define an alias for the main menu --%> 36 <%-- Define an alias for the main menu --%>
34 <c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/> 37 <c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/>
38
39 <%-- Define an alias for the sub menu --%>
40 <c:set scope="page" var="subMenu" value="${requestScope[Constants.REQ_ATTR_SUB_MENU]}"/>
35 41
36 <%-- Define an alias for the fragment name --%> 42 <%-- Define an alias for the fragment name --%>
37 <c:set scope="page" var="fragment" value="${requestScope[Constants.REQ_ATTR_FRAGMENT]}"/> 43 <c:set scope="page" var="fragment" value="${requestScope[Constants.REQ_ATTR_FRAGMENT]}"/>
38 44
39 <%-- Define an alias for the additional stylesheet --%> 45 <%-- Define an alias for the additional stylesheet --%>
63 </c:if> 69 </c:if>
64 </head> 70 </head>
65 <body> 71 <body>
66 <div id="mainMenu"> 72 <div id="mainMenu">
67 <c:forEach var="menu" items="${mainMenu}"> 73 <c:forEach var="menu" items="${mainMenu}">
68 <div class="menuEntry" 74 <%@ include file="../jspf/menu-entry.jspf" %>
69 <c:if test="${requestScope[Constants.REQ_ATTR_MODULE_CLASSNAME] eq menu.moduleClassName}">
70 data-active
71 </c:if>
72 >
73 <a href="${menu.pathName}">
74 <fmt:bundle basename="${menu.resourceKey.bundle}">
75 <fmt:message key="${menu.resourceKey.key}" />
76 </fmt:bundle>
77 </a>
78 </div>
79 </c:forEach> 75 </c:forEach>
80 </div> 76 </div>
81 <div id="subMenu"> 77 <c:if test="${not empty subMenu}">
82 78 <div id="subMenu">
83 </div> 79 <c:forEach var="menu" items="${subMenu}">
80 <%@ include file="../jspf/menu-entry.jspf" %>
81 </c:forEach>
82 </div>
83 </c:if>
84 <div id="content-area"> 84 <div id="content-area">
85 <c:if test="${not empty fragment}"> 85 <c:if test="${not empty fragment}">
86 <fmt:setBundle scope="request" basename="${moduleInfo.bundleBaseName}"/> 86 <fmt:setBundle scope="request" basename="${moduleInfo.bundleBaseName}"/>
87 <c:import url="${fragment}" /> 87 <c:import url="${fragment}" />
88 </c:if> 88 </c:if>

mercurial