<TR><TD colspan="3"><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> <P>You missed<STRONG> <%= missed %></STRONG> <BR>Your score is<STRONG> <%= (int)grade %> </STRONG> percent. <H4>Source Code</H4> <P>This quiz used the <I>Page-View with Bean Approach</I>, detailed in <A HREF="/developer/Books/javaserverpages/">Chapter 12, JSP Archeticure</A>. The <A HREF="index.txt">first page</A> of the quiz consists of regular HTML with a form that calls <A HREF="answer.txt"><CODE>answer.jsp</CODE></A>. <CODE>Answer.jsp</CODE> requests parameters from the bean, in this case, called <A HREF="QuizResponses.txt">QuizResponses</A>. The <I>page-view with bean</I> approach for this quiz required extra work to write the bean, and it could have been done using the <I>page-view approach</I> without a bean, requesting invocation directly from the <CODE>answer.jsp</CODE> page. Deciding which approach is preferrable depends on the application and how much HTML and Java scriptlets need to be used. For this quiz we opted for the <I>page-view with bean</I> approach for illustration purposes.
<P><A HREF=/developer/Quizzes/jsp/index.html>Back to Quiz</A> <P><IMG SRC=/images/T7.gif ALIGN=LEFT>