<%@ page import="java.util.*" %>
<%@ page errorPage="error.jsp" %>
<jsp:useBean id="customer" class="hansen.playground.Customer" scope="session" />
<%@ include file = "util.inc" %>
<html>
<head>
<title>Customer info</title>
</head>
<body>
<h3>CUSTOMER SEARCH</h3>
<b><%=cString(session.getValue("customerinfo.message"))%></b>
<form name=myform action="ctrlcustomerinfo.jsp" method=post>
Please enter the customer ID: <input type=text name=id value="<%=customer.getId()%>">
<input type=submit name=sub value="Search" onclick="myform.command.value='getdata'">
<input type=submit name=sub value="Update" onclick="myform.command.value='update'">
<input type=submit name=sub value="Delete" onclick="myform.command.value='delete'">
<input type=submit name=sub value="Create" onclick="myform.command.value='create'">
<input type=hidden name=command value="">
<br>
Name: <input type=text name=name value="<%=customer.getName()%>"><br>
Address: <input type=text name=address value="<%=customer.getAddress()%>"><br>
</form>