<%-- 
/**
  * 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
  * Developers: Greg Lapouchnian
  * 			Patrick Smith
  */
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>

<jsp:include page="common/loginHeader.jsp" />

    <!-- Content begins here -->

    <div id="form">

    <jsp:include page="messages.jsp" />

    <!-- Include the form itself -->
    <form class="modForm" action="<c:url value="/register.do"/>" method="post">
    
    <div class="formheader">
        <span>Account Information</span>
    </div>  
      
    <div class="row">
        <span class="label"> Username </span>
        <span class="formw">
		    <spring:bind path="command.user.username">
    			<input name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" size="55"/> <br>
		    	<span class="error"><c:out value="${status.errorMessage}"/></span>
		   	</spring:bind>
	    </span>
    </div>
    
    <div class="row">
        <span class="label"> Password </span>
        <span class="formw">
		    <spring:bind path="command.user.passwd">
    			<input type="password" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" size="55"/> <br>
		    	<span class="error"><c:out value="${status.errorMessage}"/></span>
		   	</spring:bind>
	    </span>
    </div>
    
    <div class="row">
        <span class="label"> Confirm Password </span>
        <span class="formw">
		    <spring:bind path="command.passwordConfirm">
    			<input type="password" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" size="55"/> <br>
		    	<span class="error"><c:out value="${status.errorMessage}"/></span>
		   	</spring:bind>
	    </span>
    </div>        
    
    <div class="formheader">
        <span>User Information</span>
    </div>

	<!-- include the form that is shared with the register.jsp -->
	<jsp:include page="common/userForm.jsp" />
    
 <p/>
<div class="spacer"></div>
	<p/>
	<input type="submit" name="save-user" value="Register"/>

    </form>

    <!-- This is necessary to force the parent to expand and include floating divs -->
    <br style="clear:both">
</div>

<jsp:include page="common/footer.jsp" />