lay at runtime</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="nine"
TYPE="RADIO" VALUE="D"> D.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> The include method
transfers control to a dynamic resource, while the forward method allows for
dynamic substitution of another JPS pages output, returning control to the
calling resource</FONT></TD></TR>
</TABLE>
<P>
<!-- Question 10 -->
<LI><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> What line of code below
might be combined in the same JSP page with a validation guard (for
example,<code> <% bean.validationGuard(); %></code> ), in order to create
an alternate flow of control for scenarios in which exceptions arise. The
<code>validationGaurd</code> method might throw an exception, which should cause
the flow of control to continue in another user-defined page (assume JSP
1.0)</FONT>
<BR>
<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0">
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="ten"
TYPE="RADIO" VALUE="A"> A.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> <CODE><jsp:error
page="errorPage.jsp" guard="true" /></CODE></FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="ten"
TYPE="RADIO" VALUE="B"> B.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> <CODE><%@ page
language="java" buffer="8k" %></CODE>
</FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="ten"
TYPE="RADIO" VALUE="C"> C.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"> <CODE><jsp:useBean
id="bean" class="examples.Bean" scope="request" /></CODE></FONT></TD></TR>
<TR><TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><INPUT NAME="ten"
TYPE="RADIO" VALUE="D"> D.</FONT></TD>
<TD><FONT FACE="Verdana, Arial, Helvetica, sans-serif"><CODE> <%@ page
language="java" errorPage="errorPage.jsp" buffer="8k"
%></CODE></FONT></TD></TR>
</TABLE>
</OL>
<P>
<DIV ALIGN="CENTER">
<INPUT TYPE="SUBMIT" VALUE="Submit">
<INPUT TYPE="RESET">
</DIV>
</FORM>
</FONT>
</TD>
</TR>
</TABLE>
<P>
上一页 [1] [2] [3]