This Implementation uses a JSP, a JavaBean, and a Data Accessor. The Bean is used to gather the properties from the HTML form, resulting in the removal of about ten lines of Java code from the JSP. This version also provides validation, using code in the bean. Try it with a blank form, for example, or without specifying an email address. The DAO (data accessor) moves all the JNDI and SQL code from the JSP into an external Java component, removing another 20 or so lines of Java code from the JSP.