多項(xiàng)選擇題

Given:
6.<myTag:foo bar=’42’>
7.<%="processing" %>
8.</myTag:foo> and a custom tag handler for foo which extends TagSupport.
Which two are true about thetag handler referenced by foo?()

A.The doStartTag method is called once.
B.The doAfterBody method is NOT called.
C.The EVAL_PAGE constant is a valid return value for the doEndTag method.
D.The SKIP_PAGE constant is a valid return value for the doStartTag method.
E.The EVAL_BODY_BUFFERED constant is a valid return value for the doStartTag method.


您可能感興趣的試卷

你可能感興趣的試題

3.多項(xiàng)選擇題

Given an EL function declared with:11. <function>
12.<name>spin</name>
13.<function-class>com.example.Spinner</function-class>
14.<function-signature>
15.java.lang.String spinIt()
16.</function-signature>
17.</function>
Which two are true?()

A.The function method must have the signature: public String spin().
B.The method must be mapped to the logical name "spin" in the web.xml file.
C.The function method must have the signature: public String spinIt().
D.The function method must have the signature public static String spin().
E.The function method must have the signature: public static String spinIt().
F.The function class must be named Spinner, and must be in the package com.example.

5.多項(xiàng)選擇題

Given: http://com.example/myServlet.jsp?num=one&num=two&num=three.
Which two produce the output"one, two and three"?()

A.${param.num[0],[1] and [2]}
B.${paramValues[0],[1] and [2]}
C.${param.num[0]}, ${param.num[1]} and ${param.num[2]}
D.${paramValues.num[0]}, ${paramValues.num[1]} and ${paramValues.num[2]}
E.${paramValues["num"][0]}, ${paramValues["num"][1]} and ${paramValues["num"][2]}

最新試題

Click the ’Select and Place’ button.Place the events in the order they occur.

題型:?jiǎn)柎痤}

Which two are valid and equivalent?()

題型:多項(xiàng)選擇題

A web browser need NOT always perform a complete request for a particular page that it suspects mightNOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partialresponse from the web server; this response includes information, such as the Last-Modified date but NOTthe body of the page.Which HTTP method will the browser use to retrieve such a partial response?()

題型:?jiǎn)雾?xiàng)選擇題

Click the ’Select and Place’ button.Place the events in the order they occur.

題型:?jiǎn)柎痤}

Which element of a web application deployment descriptor  element is required?()

題型:?jiǎn)雾?xiàng)選擇題

Which is true about the web container request processing model?()

題型:?jiǎn)雾?xiàng)選擇題

Click the ’Select and Place’ button.Place the events in the order they occur.

題型:?jiǎn)柎痤}

You are building a web application with a scheduling component. On the JSP, you need to show the currentdate, the date of the previous week, and the date of the next week. To help you present this information,you have created the following EL functions in the ’d’ namespace: name: curDate; signature: java.util.DatecurrentDate() name: addWeek; signature: java.util.Date addWeek(java.util.Date, int) name: dateString;signature:java.util.String getDateString(java.util.Date)Which EL code snippet will generate the string for the previousweek?

題型:?jiǎn)雾?xiàng)選擇題

Click the ’Select and Place’ button.Place the events in the order they occur.

題型:?jiǎn)柎痤}

Click the ’Select and Place’ button.Place the events in the order they occur.

題型:?jiǎn)柎痤}