<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<table align="center" width="100%">
<tr>
	<td>
	  <logic:notEmpty name="user" scope="session">
		<html:link forward="mainmenu">
		<img src="/WorkflowSample/images/logo.gif" border="0"/>
		</html:link>
	  </logic:notEmpty>
	  <logic:empty name="user" scope="session">
	    <html:link forward="welcome">
		<img src="/WorkflowSample/images/logo.gif" border="0"/>
		</html:link>
	  </logic:empty>
	</td>
	<td align="right">
		<logic:notEmpty name="user" scope="session">
		<table class="user">
		<tr>
			<td align="right"><c:out value="${user.organizationName}"/></td>
		</tr>
		<tr>
			<td align="right"><c:out value="${user.name}"/></td>
		</tr>
		<tr><td><br></td></tr>
		<tr>
			<td align="right">
				<html:link action="/logout"><bean:message key="logout.title"/></html:link>
			</td>
		</tr>
		</table>
		</logic:notEmpty>
	</td>
</tr>
</table>
<hr>
