User Statistics
The category selection page should be modified to display the most
recent scores for the user in each quiz category.
This requires 4 kinds of changes:
-
Add a variable of type
Map<String, Map<String, Integer>>
to the Database class to hold recent scores.
The outer Map here is keyed by user name.
The inner Map is keyed by category name.
-
Add methods to the Database class to retrieve and update recent
scores.
-
Modify you category selection page to display information from the
Database class.
-
Find your quiz bean action method that navigates from the quiz
page back to the category selection page.
This method should be the one the ends the quiz bean
conversation scope.
Modify the method to invoke the Database bean method for
updating recent scores.