Mortgage Calculator

For this project you will need to create three files:

mortgage.html

calc.jsp

Here's what calc.jsp looks like after the scriptlets are run:

CalculatorBean.java

In this lab you will use the usebean directive to create an instance of the following class:

public class CalculatorBean implements java.io.Serializable {
   // = (p*R) / [1 - (1 + R)^(-N)]
   public double monthlyPayment(double p, double r, int n) {
      // don't forget to adjust r and n
   }
}

Oracle JDevloper Hints

To create a bean in JDeveloper add a new Java Class to the ViewController project.