In this assignment, you will extend Assignment#4 to include the first part of an e-mail confirmation. One of the input fields in Assignment#4 was an e-mail address. If the input form was valid, you forwarded to a confirmation JSP page. Extend that confirmation JSP page so that in addition to displaying the confirmation message, you invoke an e-mail custom tag.
The e-mail custom tag could send the actual e-mail confirmation message, but for this assignment, the custom tag should just generate html that displays the confirmation information in an html paragraph tag. The paragraph should include text that thanks the user for registering, and also includes the actual e-mail address.
The tag attributes should include the information you need to send the e-mail (i.e., e-mail destination address and the mail server SMTP address). You will obtain the e-mail destination address from your bean, while the SMTP address attribute can be hard-coded. The confirmation message will be in the body of the tag when you include it in your JSP. Your custom tag will check if the e-mail and SMTP server addresses are valid, and then will execute the body of your tag. If either address is not correct, your tag handler will generate appropriate error message html and will not execute the body of your tag.
This assignment includes the following 2 components: