Hello,
User when he entered plan "platinum"on
jsp page...first
servlet and finally DAOImplementation class gets called. Now the someAmountMoney1 variable will have the total investment amount i receive after 3 years. This I want to display it on JSP.
Could anyone provide me suggestion on how the value of variable in method can be called in JSP and display value stored in variable to user?
i have a condition implemented in method :
public boolean getOutManageInvestment(
String accountID, String password,
double someAmountMoney, String plan) throws MyWebBankException {
..............
-----------
double interestrate;
if (plan.equalsIgnoreCase("PLATINUM"))
{
interestrate=0.70; double someAmountMoney1=0.0;
System.out.println("Amount you entered is"+someAmountMoney);
someAmountMoney1=(someAmountMoney+someAmountMoney*interestrate)*3;
System.out.println("Amount you receive after period of 3 years you will receive"+someAmountMoney1);
}