[ Team LiB ] 5.5 The Quiz Result

[ Team LiB ] 5.5 The Quiz Result Page Chapter 3 introduced the daily quiz that Java News Today will use to liven up its site. The quiz consists of a serialized bean that holds the questions and correct answer, along with a form from which the user can guess, as shown in Listing 3.13. At that point, there was no way to check whether the user was correct, but that’s easily remedied now that we have the standard tag library at our disposal. The quiz result page, shown in Listing 5.6, it is very straightforward. Listing 5.6 The quiz result page <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> That’s right!

Sorry, that’s incorrect; the right answer is

This is another example of setting bean properties from a form and then checking a condition with a c:choose tag. [ Team LiB ] Page 99
Note: If you are looking for good and quality webspace to host and run your java application check Actions java hosting services

Comments are closed.