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

changeset 205
7725a79416f3
parent 204
54c612612c69
child 207
479dd7993ef9
--- a/src/main/webapp/WEB-INF/jsp/site.jsp	Sun Aug 01 18:14:36 2021 +0200
+++ b/src/main/webapp/WEB-INF/jsp/site.jsp	Sun Aug 01 18:56:28 2021 +0200
@@ -42,6 +42,9 @@
 <%-- Define an alias for the navigation menu --%>
 <c:set scope="page" var="navMenu" value="${requestScope[Constants.REQ_ATTR_NAVIGATION]}"/>
 
+<%-- Define an alias for the custom page title --%>
+<c:set scope="page" var="pageTitle" value="${requestScope[Constants.REQ_ATTR_PAGE_TITLE]}"/>
+
 <%-- Define an alias for the content page name --%>
 <c:set scope="page" var="contentPage" value="${requestScope[Constants.REQ_ATTR_CONTENT_PAGE]}"/>
 
@@ -59,7 +62,10 @@
 <html>
 <head>
     <base href="${baseHref}">
-    <title><fmt:message key="app.title"/></title>
+    <title>
+        LightPIT
+        <c:if test="${not empty pageTitle}"> - <c:out value="${pageTitle}"/></c:if>
+    </title>
     <meta charset="UTF-8">
     <c:if test="${not empty redirectLocation}">
         <meta http-equiv="refresh" content="0; URL=${redirectLocation}">

mercurial