<html> <body> <H2>Mortgage Calculation</H2> Here is an example of a servlet that reuses the FinancialCalculations class, and replaces the JAVA gui with an HTML form to get and post the results to the browser. <FORM METHOD="POST" ACTION="/servlets/ExampServlet"> <p>Amount<INPUT TYPE="TEXT" NAME="amount" SIZE=30></p> <p>Rate<INPUT TYPE="TEXT" NAME="rate" SIZE=30></p> <p>Years<INPUT TYPE="TEXT" NAME="years" SIZE=30></p> <P> <INPUT TYPE="SUBMIT" VALUE="Calculate Payment"> <INPUT TYPE="RESET"> </FORM> </body> </html>