<%@ taglib uri="utiltags" prefix="util" %>
<util:ifInRole role="users" include="true">
	<table bgcolor="ffffff">
		<tr>
			<td><b>Logged in as <%=request.getRemoteUser()%></b></td>
		</tr>
		<tr>
			<td>
				<form action="logout.jsp">
					<input type="submit" value="Log out">
					<input type="hidden" name="forward" value="<%=request.getAttribute("javax.servlet.include.request_uri")%>">
				</form>
			</td>
		</tr>
	</table>
</util:ifInRole>
<util:ifInRole role="users" include="false">
	<form method="POST">
		<table bgcolor="ffffff">
			<tr>
				<td>
					<b>Username: </b><br><input name="j_username" type="text"><br>
				</td>
			</tr>
			<tr>
				<td>
					<b>Password: </b><br><input name="j_password" type="password"><br>
				</td>
			</tr>
			<tr>
				<td>
					<input type="submit" value="Log in">
				</td>
			</tr>
		</table>
	</form>
</util:ifInRole>
