單項(xiàng)選擇題What is the purpose of session management?()

A.To manage the user’s login and logout activities.
B.To store information on the client-side between HTTP requests.
C.To store information on the server-side between HTTP requests.
D.To tell the web container to keep the HTTP connection alive so it can make subsequent requestswithout the delay of making the TCP connection.


您可能感興趣的試卷

你可能感興趣的試題

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

A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code:
1.<%@ taglib prefix="x"
2.tagdir="/WEB-INF/tags/alpha" %>
3.<x:beta />
The sort.jsp page is requested.
Which two are true?()

A.Tag files can only be accessed using a tagdir attribute.
B.The sort.jsp page translates successfully and invokes the tag defined by beta.tag.
C.The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.
D.Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.
E.The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.

3.多項(xiàng)選擇題Which two are true about the JSTL core iteration custom tags?()

A.It may iterate over arrays, collections, maps, and strings.
B.The body of the tag may contain EL code, but not scripting code.
C.When looping over collections, a loop status object may be used in the tag body.
D.It may iterate over a map, but only the key of the mapping may be used in the tag body.
E.When looping over integers (for example begin=’1’ end=’10’), a loop status object may not be used inthe tag body.

4.單項(xiàng)選擇題

Click the Exhibit button.

Assuming the tag library in the exhibit is imported with the prefix stock,which custom tag invocation outputsthe contents of the variable exposed by the quote tag?()

A.<;stock:quote&ensp;symbol=";SUNW";&ensp;/>;${var}
B.${var}.&ensp;<;stock:quote&ensp;symbol=";SUNW";&ensp;/>;
C.<;stock:quote&ensp;symbol=";SUNW";>;.&ensp;${var}.&ensp;<;/stock:quote>;
D.<;stock:quote&ensp;symbol=";SUNW";&ensp;var=";quote";&ensp;/>;${quote}

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

A JSP page contains a taglib directive whose uri attribute has the value dbtags.
Which XML element withinthe web application deployment descriptor defines the associated TLD?()

A.<tld><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location></tld>
B.<taglib><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location>. </taglib>
C.<tld>. <tld-uri>dbtags</tld-uri>. <tld-location>/WEB-INF/tlds/dbtags.tld</tld-location> . </tld>
D.<taglib><taglib-uri>dbtags</taglib-uri><taglib-location>/WEB-INF/tlds/dbtags.tld. </taglib-location>. </taglib>

最新試題

Given tutorial.jsp:2.EL Tutorial3.Example 14.5.Dear ${my:nickname(user)}6.Which, when added to the web application deployment descriptor,ensures that line 5 is included verbatimin the JSP output?()

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

Which is a benefit of precompiling a JSP page?()

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

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

題型:問答題

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

題型:問答題

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

題型:問答題

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?

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

Click the Exhibit button.The attribute "name" has a value of "Foo,"What is the result if this tag handler’s tag is invoked?()

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

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

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

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

題型:問答題

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

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