web/WEB-INF/view/full.jsp

Sat, 16 Dec 2017 20:19:28 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 16 Dec 2017 20:19:28 +0100
changeset 10
89e3e6e28b69
parent 1
web/WEB-INF/view/home.jsp@34241be7db73
permissions
-rw-r--r--

implements automatic menu generation from module information

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
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36 <!DOCTYPE html>
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 <html>
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 <head>
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
39 <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/">
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
40 <title>LightPIT - TODO: current menu</title>
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 <meta charset="UTF-8">
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
42 <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
43 </head>
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 <body>
10
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
45
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
46 <div id="mainMenu">
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
47 <c:forEach var="menuEntry" items="${mainMenu}">
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
48 <div class="menuEntry"
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
49 <c:if test="${fn:contains(requestScope[Constants.REQ_ATTR_PATH], menuEntry.pathName)}">
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
50 data-active
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
51 </c:if>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
52 >
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
53 <a href="${menuEntry.pathName}">
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
54 <fmt:bundle basename="${menuEntry.resourceKey.bundle}">
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
55 <fmt:message key="${menuEntry.resourceKey.key}" />
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
56 </fmt:bundle>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
57 </a>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
58 </div>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
59 </c:forEach>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
60
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
61 </div>
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
62 <div id="subMenu">
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
63
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 <div id="content-area">
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
66 TODO: content fragment
89e3e6e28b69 implements automatic menu generation from module information
Mike Becker <universe@uap-core.de>
parents: 1
diff changeset
67 </div>
1
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
68 </body>
34241be7db73 adds HomeServerlet and Resource Bundle
Mike Becker <universe@uap-core.de>
parents:
diff changeset
69 </html>

mercurial