;</TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="four"
TYPE="RADIO" VALUE="D"> D.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> Moving the code into a
transaction manager</FONT></TD></TR>
</TABLE>
<P>
<!-- Question 5 -->
<LI><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> What type of scriptlet
code is better-suited to being <I>factored forward</I> into a servlet?
</FONT>
<BR>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0">
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="five"
TYPE="RADIO" VALUE="A"> A.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Code that deals
with logic that is common across requests</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="five"
TYPE="RADIO" VALUE="B"> B.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Code that deals
with logic that is vendor specific</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="five"
TYPE="RADIO" VALUE="C"> C.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Code that deals
with logic that relates to database access</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="five"
TYPE="RADIO" VALUE="D"> D.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Code that deals
with logic that relates to client scope</FONT></TD></TR>
</TABLE>
<P>
<!-- Question 6 -->
<LI><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Choose the statement that
best describes how to connect JSP pages and EJBs</FONT>
<BR>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0">
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="six"
TYPE="RADIO" VALUE="A"> A.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Lookup the EJBs from
within a JSP, but use the EJBs from within a basic JavaBean</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="six"
TYPE="RADIO" VALUE="B"> B.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Lookup and use the EJBs
from a separate business delegate. The JavaBeans that work with JSP pages are
clients to these business delegates and know nothing about EJB
specifics</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="six"
TYPE="RADIO" VALUE="C"> C.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> Lookup and use the
EJBs from within a JSP page, but only as remote references</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="six"
TYPE="RADIO" VALUE="D"> D.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Lookup the EJBs from
within a servlet, delegating usage to specific JSP pages</FONT></TD></TR>
</TABLE>
<P>
<!-- Question 7 -->
<LI><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> Are custom tags
available in JSP 1.0? If not, how else might you implement iteration from
within a JSP? </FONT>
<BR>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0">
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="seven"
TYPE="RADIO" VALUE="A"> A.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> Yes, but the only tags
available relate to database access</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="seven"
TYPE="RADIO" VALUE="B"> B.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> No. To iterate over a
collection of values, one must use scriptlet code</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="seven"
TYPE="RADIO" VALUE="C"> C.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> No, but there is a
standard <iterate> tag that may be used</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="seven"
TYPE="RADIO" VALUE="D"> D.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> Yes, but custom tags
will not help developers create tags for use in iterating over a
collection</FONT></TD></TR>
</TABLE>
<P>
<!-- Question 8 -->
<LI><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> What is the initial
contact point for handling a web request in a <I>Page-Centric</I> architecture?
</FONT>
<BR>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0">
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="eight"
TYPE="RADIO" VALUE= "A"> A.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> A JSP
page</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="eight"
TYPE="RADIO" VALUE= "B"> B.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> A
JavaBean</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="eight"
TYPE="RADIO" VALUE= "C"> C.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> A
servlet</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="eight"
TYPE="RADIO" VALUE= "D"> D.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> A session
manager</FONT></TD></TR>
</TABLE>
<P>
<!-- Question 9 -->
<LI><FONT FACE="Verdana, Arial, Helvetica, sans-serif">What is the difference
between doing an <I>include</I> or a <I>forward</I> with a
<CODE>RequestDispatcher</CODE>?</FONT>
<BR>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0">
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="nine"
TYPE="RADIO" VALUE="A"> A.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> The forward method
transfers control to the designated resource, while the include method invokes
the designated resource, substitutes its output dynamically in the display, and
returns control to the calling page.</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="nine"
TYPE="RADIO" VALUE="B"> B.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> The two methods
provide the same functionality, but with different levels of
persistence</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="nine"
TYPE="RADIO" VALUE="C"> C.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> The forward method is
deprecated as of JSP 1.1 and the include method should be used in order to
substitue portions of a dynamic disp
上一页 [1] [2] [3] 下一页