<%-- 
/**
  * Copyright (c) 2004 Red Hat, Inc. All rights reserved.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
  * version 2.1 of the License, or any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  * USA
  *
  * Component of: Red Hat Application Server
  * 
  * Initial Developers: Aizaz Ahmed
  *                     Vivek Lakshmanan
  *                     Andrew Overholt
  *                     Matthew Wringe
  *
  */
--%>
<%-- This page provides a detailed view for Users. It expects the user
object UserLocal to be defined as userToDisplay. This is clumsy ... if necessary
it should be modified so that the user is loaded into the session and the
name of the user is passed to this page --%>

<%@ page contentType="text/html"
	 import="olstore.entity.*"
%>

<div class="UserDetailedView">
<%  UserLocal user = (UserLocal) request.getAttribute( "userToDisplay" );
%>  <h3 class="UserTitle"><%= user.getUsername() %></h3><%

%>  First Name: <%= user.getFname() %> </P>
    <p> Last Name: <%= user.getLname() %> </p>
    <p> Email Address: <%= user.getEmailAdd() %> </p>
    <p> Phone Nuber: <%= user.getPhoneNum() %> </p>
    <p> Password: <%= user.getPasswd() %> </p>
    <p> Role: <%= user.getRole() %> </p>
    <% AddressLocal address=user.getAddress(); %>
    <p> ADDRESS INFORMATION <p>
    <p> Country: <%= address.getCountry() %> </p>
    <p> City: <%= address.getCity() %> </p>
    <p> Postal Code: <%= address.getPostalCode() %> </p>
    <p> Street 1: <%= address.getStreet1() %> </p>
    <p> Street 2: <%= address.getStreet2() %> </p>
    <p> Province: <%= address.getProvince() %> </p>

</div>
