您现在的位置: 军旅同心-旅游自驾-军旅文学 >> 读书赏析 >> 学习园地 >> 电脑网络 >> 技术文章 >> 正文
jsp在线考试系统-htm文件
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005-9-10 14:27:39
;</TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="four"
TYPE="RADIO" VALUE="D"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;C.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> No, but there is a
standard &lt;iterate&gt; tag that may be used</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="seven"
TYPE="RADIO" VALUE="D"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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"> &nbsp;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] 下一页


更多
免责声明:作品版权归所属媒体与作者所有!!本站刊载此文不代表同意其说法或描述,仅为提供更多信息。如果您认为我们侵犯了您的版权,请告知!本站立即删除。有异议请联系我们。
文章录入:烟灰缸    责任编辑:烟灰缸 
网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
| 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 网站地图 | 版权申明 | 网站公告 | 管理登录 |