<% String custName = request.getParameter("name");
// need to call the appropriate method of db to
// order the product
// at present we thank the customer, but then fail
// to make the order
// when the order has been made, we should also empty
// the contents of this shopping basket - but how ???
if (custName != null) {
// order the basket of items!
// then empty the basket
emptyBasket()
%>
Dear <%= custName %> ! Thank you for your order.
<%
}
else {
%>
please go back and supply a name
<%
}
%>