web/WEB-INF/jsp/full.jsp

Tue, 26 Dec 2017 19:18:32 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 26 Dec 2017 19:18:32 +0100
changeset 14
2b270c714678
parent 11
737ab27e37b3
permissions
-rw-r--r--

changed logger implementation to log4j2

1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <%--
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 Copyright 2017 Mike Becker. All rights reserved.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 Redistribution and use in source and binary forms, with or without
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 modification, are permitted provided that the following conditions are met:
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 1. Redistributions of source code must retain the above copyright
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 notice, this list of conditions and the following disclaimer.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 2. Redistributions in binary form must reproduce the above copyright
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 notice, this list of conditions and the following disclaimer in the
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 documentation and/or other materials provided with the distribution.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 --%>
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
27 <%@page contentType="text/html" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
28 <%@page import="de.uapcore.lightpit.Constants" %>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
31 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
33 <%-- Define an alias for the main menu --%>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
34 <c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/>
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35
11
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
36 <%-- Define an alias for the module info --%>
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
37 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
38
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39 <!DOCTYPE html>
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 <html>
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 <head>
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
42 <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/">
11
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
43 <title>LightPIT -
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
44 <fmt:bundle basename="${moduleInfo.bundleBaseName}">
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
45 <fmt:message key="${moduleInfo.titleKey}" />
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
46 </fmt:bundle>
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
47 </title>
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
48 <meta charset="UTF-8">
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
49 <link rel="stylesheet" href="lightpit.css" type="text/css">
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 </head>
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51 <body>
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
52 <div id="mainMenu">
11
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
53 <c:forEach var="menu" items="${mainMenu}">
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
54 <div class="menuEntry"
11
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
55 <c:if test="${requestScope[Constants.REQ_ATTR_MODULE_CLASSNAME] eq menu.moduleClassName}">
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
56 data-active
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
57 </c:if>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
58 >
11
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
59 <a href="${menu.pathName}">
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
60 <fmt:bundle basename="${menu.resourceKey.bundle}">
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
61 <fmt:message key="${menu.resourceKey.key}" />
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
62 </fmt:bundle>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
63 </a>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
64 </div>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
65 </c:forEach>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
66
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
67 </div>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
68 <div id="subMenu">
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
69
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
70 </div>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
71 <div id="content-area">
11
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
72 <%-- Resource keys should be rooted in the specific bundle for this module. --%>
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
73 <fmt:bundle basename="${moduleInfo.bundleBaseName}">
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
74 TODO: load fragment
737ab27e37b3 implements simple request mapper
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
75 </fmt:bundle>
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
76 </div>
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
77 </body>
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
78 </html>

mercurial