How to Use the JAVA , HTML and JSP code given to create or change something and make the output ( Loan output) can store in database
Someone please help me,Basec on the image given ( Loan and Loan output).
How to Use the JAVA , HTML and JSP code given to create or change something and make the output ( Loan output) can store in
(Create a database named " bookingcourtdb" and "jdbc / bookingcourtds")
File : ComputeLoan.html <!-- View component: ComputeLoan.html --> </body>
|
File: DisplayLoanComputationResult2.jsp <%-- View component: DisplayLoanComputationResult2.jsp --%> <%-- alternate way <html> Annual Interest Rate: ${loan["annualInterestRate"]}<br /> |
File: ComputeLoan.java /* Controller component: ComputeLoan.java *. @WebServlet(urlPatterns = {"/ComputeLoan"}) @Override |
File: Loan.java /* Model component: Loan.java */ package domain; public class Loan { public Loan() { public Loan(double annualInterestRate, int numberOfYears, double loanAmount) { public double getAnnualInterestRate() { public void setAnnualInterestRate(double annualInterestRate) { public int getNumberOfYears() { public void setNumberOfYears(int numberOfYears) { public double getLoanAmount() { public void setLoanAmount(double loanAmount) { public double getMonthlyPayment() { public double getTotalPayment() { public java.util.Date getLoanDate() {
|
Step by step
Solved in 5 steps