一個在線考試系統,測試你的jsp(SUN企業級應用的首選)知識,代碼不是特別多,所以不加注釋了(http://jsp(SUN企業級應用的首選)bbs.yeah.net)
index.jsp(SUN企業級應用的首選)
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD VALIGN="TOP"><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
<DIV ALIGN="RIGHT">
<FONT SIZE="-1"><A HREF="/developer/Quizzes/index.html">Quizzes
Index</A></FONT></DIV>
<H2 ALIGN="RIGHT"><FONT COLOR="#FFFFFFF">jsp(SUN企業級應用的首選) Professional, Chapter 12
Quiz</FONT></H2>
<H4 ALIGN="RIGHT"><EM>by Dan Malks</EM></H4>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR><TD>
<IMG src="/edu/UploadPic/2008-2/2008229135236174.gif"" WIDTH="164" HEIGHT="115" ALIGN=left ALT="Duke">
</TD><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
The <I><A
HREF="/developer/Books/jsp(SUN企業級應用的首選)/index.html">jsp(SUN企業級應用的首選) Professional: Chapter 12, jsp(SUN企業級應用的首選)
Archictecture</A></I> Test your knowledge on the differences between servlets
and jsp(SUN企業級應用的首選), Factor Forward-Factor Back, page-centric verses the dispatcher
approach, and more.
</FONT></TD></TR>
</TABLE>
<HR>
<!-- Form calls the answer.jsp(SUN企業級應用的首選), which invokes the QuizResponses bean -->
<FORM METHOD="POST" ACTION="answer.jsp(SUN企業級應用的首選)">
<OL>
<!-- Question 1 -->
<LI><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Choose the statement
that best describes the relationship between JavaServer
Pages<SUP><FONT SIZE="-2">TM</FONT></SUP> (jsp(SUN企業級應用的首選)<SUP><FONT SIZE="-2">TM</FONT></SUP>)
and servlets: </FONT>
<BR>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0">
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="one"
TYPE="RADIO" VALUE="A"> A.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
Servlets are built on jsp(SUN企業級應用的首選) semantics and all servlets are compiled to jsp(SUN企業級應用的首選)
pages for runtime usage<BR></FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="one"
TYPE="RADIO" VALUE="B"> B.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> jsp(SUN企業級應用的首選) and servlets are
unrelated technologies</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="one"
TYPE="RADIO" VALUE="C"> C.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Servlets and jsp(SUN企業級應用的首選) are
competing technologies for handling web requests. Servlets are being superceded
by jsp(SUN企業級應用的首選), which is preferred. The two technologies are not useful in combination.
</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="one"
TYPE="RADIO" VALUE="D"> D.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> jsp(SUN企業級應用的首選)s are built on
servlet semantics and all jsp(SUN企業級應用的首選)s are compiled to servlets for runtime usage
</FONT></TD></TR>
</TABLE>
<P>
<!-- Question 2 -->
<LI><FONT FACE="Verdana, Arial, Helvetica, sans-serif">What is a benefit of