Question: Use JSTL to add a table to the Future Value application In this exercise, youll use JSTL to add a table to the Future Value

Use JSTL to add a table to the Future Value application In this exercise, youll use JSTL to add a table to the Future Value application showing the value of a series of monthly investments at the end of each year. Review the project 1. Download, unzip and open the project named ch09_ex3_futureValue. https://drive.google.com/file/d/0B5HjVVkWJYBId184VW1zTmtJYnc/view?usp=sharing 2. Open the FutureValueServlet class. Note that the code in the doPost method has been modified to create a list of calculation objects, one for each year starting at one and going up to the number of years entered by the user. Also, note that it stores an attribute named calculations in the request. Modify the code 3. Open the index.jsp file. Then, modify it so it uses the JSTL choose tags instead of JSTL if tags. 4. Open the result.jsp file. Then, modify it so it presents a table that displays the value of the investment for each year up to the year the user entered. To do this, you can use a JSTL forEach tag. When youre done, the user interface should look something like this: 5. Note that the Investment Amount, Yearly Interest Rate, and Number of Years fields are no longer working correctly. This is because the application stores multiple calculations instead of a single calculation. 6. Fix the application so the second page displays the Investment Amount, Yearly Interest Rate, and Number of Years fields again. There are several ways to do this. Choose the way that you think works best. Download Files: https://drive.google.com/file/d/0B5HjVVkWJYBId184VW1zTmtJYnc/view?usp=sharing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!