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

changeset 46
1574965c7dc7
parent 45
cc7f082c5ef3
child 47
57cfb94ab99f
equal deleted inserted replaced
45:cc7f082c5ef3 46:1574965c7dc7
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 <%-- 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}/" />
35
33 <%-- Define an alias for the request path --%> 36 <%-- Define an alias for the request path --%>
34 <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]}"/>
35 38
36 <%-- Define an alias for the main menu --%> 39 <%-- Define an alias for the main menu --%>
37 <c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/> 40 <c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/>
54 </c:if> 57 </c:if>
55 58
56 <!DOCTYPE html> 59 <!DOCTYPE html>
57 <html> 60 <html>
58 <head> 61 <head>
59 <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/"> 62 <base href="${baseHref}">
60 <title>LightPIT - 63 <title>LightPIT -
61 <fmt:bundle basename="${moduleInfo.bundleBaseName}"> 64 <fmt:bundle basename="${moduleInfo.bundleBaseName}">
62 <fmt:message key="${moduleInfo.titleKey}" /> 65 <fmt:message key="${moduleInfo.titleKey}" />
63 </fmt:bundle> 66 </fmt:bundle>
64 </title> 67 </title>

mercurial