Write a web page form that prompts user to enter

Write a web page form that prompts the user to enter loan amount, interest rate, and number of years, as shown in Figure 37.31a. Clicking the Compute Loan Payment button invokes a servlet to compute and display the monthly and total loan payments, as shown in Figure 37.31b. Use the Loan class given in Listing 10.2, Loan.java, to compute the monthly and total payments. Use Java.util.Locale to format the output for the correct locale.

Leave a Reply

Your email address will not be published. Required fields are marked *