Blame | Last modification | View Log | Download | RSS feed
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<% String homeUrl = request.getContextPath() + "/index.jsp"; %>
<% String logoutUrl = request.getContextPath() + "/j_spring_security_logout"; %>
<div id="mainnav">
<ul>
<li>
<a onmouseout="htm()" onmouseover="stmb(0,0)" accesskey="a" href="<%=homeUrl%>">Home</a>
</li>
<s:if test="%{#session.principal != null}">
<li>
<a onmouseout="htm()" onmouseover="stmb(-1,0)" accesskey="a" href="<%=logoutUrl%>">Logout</a>
</li>
</s:if>
</ul>
<s:if test="%{#session.principal != null}">
<div style="position:absolute; top:110px; right:25px;">
Benvenuto utente
<s:property value="#session.principal.username" />
</div>
</s:if>
</div>