
Figure 10-29 Customer Registration form
Once the Submit button is clicked, the doPost is invoked. It extracts the data from the HTTP request, and constructs a new customer entity bean, and the data is inserted into the database. Then the CustomerXML converts the bean into a DOM representation. The servlet finally applies the output style sheet on the create DOM representation creating the HTML output in Figure