Successful handling of a bill payment over the Web requires the following 3 steps: validate the input form values, create and post a BillPaymentTransaction and generate an HTML confirmation page. Which one of the following describes the BEST approach for implementing these steps?
Answer(s)
- Create a ProcessBillPayment Servlet that validates form input, creates and posts a BillPaymentTransaction, and generates the confirmation page.
- Create a ProcessBillPayment Servlet that validates form input, creates and posts a BillPaymentTransaction, and forwards to a confirmation JSP.
- Create a ProcessBillPayment Servlet that validates form input, creates a BillPaymentTransaction, and forwards it to a confirmation JSP that posts the Transaction and generates the confirmation page.
- Create a "ProcessBillPayment.jsp" page that validates form input, creates and posts a BillPaymentTransaction, and forwards to a confirmation JSP.
Correct Answer
Create a ProcessBillPayment Servlet that validates form input, creates and posts a BillPaymentTransaction, and forwards to a confirmation JSP.