<html>
<!--
Copyright (c) 2001, Keith Wong

Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-->

<%@ page session="false"%>
<%@ page import="objectivehtml.htmlwidget.*" %>
<%@ page import="mypackage.*" %>

<style>
.heading		{font-family:Arial,sans-serif; font-size:12pt; font-weight:bold; color:#000000;}
.normal			{font-family:Arial,sans-serif; font-size:10pt; font-weight:normal; color:#000000;}
.info			{font-family:Arial,sans-serif; font-size:10pt; font-weight:normal; color:#0000ff;}
.error			{font-family:Arial,sans-serif; font-size:10pt; font-weight:normal; color:#ff0000;}
</style>

<body bgcolor="white">
<p class="heading">Customer Details</p>
<p class="normal">All fields with an asterix (*) are mandatory fields.</p>
<%
	// retrieve the previous form object
	CustomerForm objForm = (CustomerForm)request.getSession().getAttribute("customerform");
	if (objForm == null)
	{
		// we need to create the form first...
		// this can occur if the page is cached
		// create a new form
		objForm = new CustomerForm(); // our self defined form

		// store the new form in the session so we can use it later
		request.getSession().setAttribute("customerform", objForm);

	} // end if null

	// this method magically updates all form data
	objForm.updateData(request);

	// this method prints out the current state of the form out to the client
	objForm.printHtml(out);

%>

</body>
</html>