-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.jsp
More file actions
27 lines (20 loc) · 786 Bytes
/
Copy pathheader.jsp
File metadata and controls
27 lines (20 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
uri="http://www.springframework.org/security/tags"%>
<a class="title" href="<c:url value='/'/>">Offers</a>
<c:choose>
<c:when test="${online}">
<span class="loggedInAs"> <c:out value="Logged in as: ${user}"></c:out></span>
</c:when>
<c:otherwise>
<a class="register" href="<c:url value='/register'/>">Register</a>
</c:otherwise>
</c:choose>
<sec:authorize access="!isAuthenticated()">
<a class="login" href="<c:url value='/login'/>">Log in</a>
</sec:authorize>
<sec:authorize access="isAuthenticated()">
<a class="login" href="<c:url value='/logout'/>">Log out</a>
</sec:authorize>