Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
2
<%@ taglib prefix="s" uri="/struts-tags" %>
3
 
4
<% String homeUrl = request.getContextPath() + "/index.jsp"; %>
5
<% String logoutUrl = request.getContextPath() + "/j_spring_security_logout"; %>
6
 
7
<div id="mainnav">
8
	<ul>
9
		<li>
10
			<a onmouseout="htm()" onmouseover="stmb(0,0)" accesskey="a" href="<%=homeUrl%>">Home</a>
11
		</li>
12
		<s:if test="%{#session.principal != null}">
13
			<li>
14
				<a onmouseout="htm()" onmouseover="stmb(-1,0)" accesskey="a" href="<%=logoutUrl%>">Logout</a>
15
			</li>
16
		</s:if>
17
	</ul>
18
	<s:if test="%{#session.principal != null}">
19
		<div style="position:absolute; top:110px; right:25px;">
20
			Benvenuto utente
21
			<s:property value="#session.principal.username" />
22
		</div>
23
	</s:if>
24
</div>