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 <%-- Make the base href easily available at request scope --%> |
33 <%-- Make the base href easily available at request scope --%> |
34 <c:set scope="request" var="baseHref" value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/" /> |
34 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}" /> |
35 |
35 |
36 <%-- Define an alias for the request path --%> |
36 <%-- Define an alias for the request path --%> |
37 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/> |
37 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/> |
38 |
38 |
39 <%-- Define an alias for the main menu --%> |
39 <%-- Define an alias for the main menu --%> |
42 <%-- Define an alias for the sub menu --%> |
42 <%-- Define an alias for the sub menu --%> |
43 <c:set scope="page" var="subMenu" value="${requestScope[Constants.REQ_ATTR_SUB_MENU]}"/> |
43 <c:set scope="page" var="subMenu" value="${requestScope[Constants.REQ_ATTR_SUB_MENU]}"/> |
44 |
44 |
45 <%-- Define an alias for the fragment name --%> |
45 <%-- Define an alias for the fragment name --%> |
46 <c:set scope="page" var="fragment" value="${requestScope[Constants.REQ_ATTR_FRAGMENT]}"/> |
46 <c:set scope="page" var="fragment" value="${requestScope[Constants.REQ_ATTR_FRAGMENT]}"/> |
|
47 |
|
48 <%-- Define an alias for the optional redirect location --%> |
|
49 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/> |
47 |
50 |
48 <%-- Define an alias for the additional stylesheet --%> |
51 <%-- Define an alias for the additional stylesheet --%> |
49 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/> |
52 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/> |
50 |
53 |
51 <%-- Define an alias for the module info --%> |
54 <%-- Define an alias for the module info --%> |
64 <fmt:bundle basename="${moduleInfo.bundleBaseName}"> |
67 <fmt:bundle basename="${moduleInfo.bundleBaseName}"> |
65 <fmt:message key="${moduleInfo.titleKey}" /> |
68 <fmt:message key="${moduleInfo.titleKey}" /> |
66 </fmt:bundle> |
69 </fmt:bundle> |
67 </title> |
70 </title> |
68 <meta charset="UTF-8"> |
71 <meta charset="UTF-8"> |
|
72 <c:if test="${not empty redirectLocation}"> |
|
73 <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> |
|
74 </c:if> |
69 <link rel="stylesheet" href="lightpit.css" type="text/css"> |
75 <link rel="stylesheet" href="lightpit.css" type="text/css"> |
70 <c:if test="${not empty extraCss}"> |
76 <c:if test="${not empty extraCss}"> |
71 <link rel="stylesheet" href="${extraCss}" type="text/css"> |
77 <link rel="stylesheet" href="${extraCss}" type="text/css"> |
72 </c:if> |
78 </c:if> |
73 </head> |
79 </head> |
85 </div> |
91 </div> |
86 </c:if> |
92 </c:if> |
87 <div id="content-area"> |
93 <div id="content-area"> |
88 <c:if test="${not empty fragment}"> |
94 <c:if test="${not empty fragment}"> |
89 <fmt:setBundle scope="request" basename="${moduleInfo.bundleBaseName}"/> |
95 <fmt:setBundle scope="request" basename="${moduleInfo.bundleBaseName}"/> |
|
96 <fmt:setBundle scope="request" var="lightpit_bundle" basename="localization.lightpit"/> |
90 <c:import url="${fragment}" /> |
97 <c:import url="${fragment}" /> |
91 </c:if> |
98 </c:if> |
92 </div> |
99 </div> |
93 </body> |
100 </body> |
94 </html> |
101 </html> |