单选题Which the statement is true about web container session management()?A  Access to session-scoped attributes is guaranteed to be thread-safe by the web container.B  To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewritin

题目
单选题
Which the statement is true about web container session management()?
A

 Access to session-scoped attributes is guaranteed to be thread-safe by the web container.

B

 To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.

C

 If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.

D

 The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()

  • A、id
  • B、name
  • C、bean
  • D、type
  • E、scope

正确答案:A,D,E

第2题:

One of the use cases in your web application uses many session-scoped attributes. At the end of the usecase,you want to clear out this set of attributes from the session object. Assume that this static variableholds this set of attribute names: 201.private static final Set USE_CASE_ATTRS;  202.static { 203.USE_CASE_ATTRS.add("customerOID"); 204.USE_CASE_ATTRS.add("custMgrBean"); 205.USE_CASE_ATTRS.add("orderOID"); 206.USE_CASE_ATTRS.add("orderMgrBean"); 207.} Which code snippet deletes these attributes from the session object?()

  • A、session.removeAll(USE_CASE_ATTRS);
  • B、for ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}
  • C、for ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}
  • D、for ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}
  • E、session.deleteAllAttributes(USE_CASE_ATTRS);

正确答案:C

第3题:

Which two statements are true about Oracle Weblogic Clustering ? ()

  • A、 WLS instances must be in a Cluster for In-Memory HTTP Session Replication to function  
  • B、 WLS supports only hardware load balancing to ensure HA access for HTTP/Web clients
  • C、 The servers must be running on the same port number
  • D、 Make sure your Admin Server configuration and related files reside on a HA file system or some other backup/recovery strategy is in place 

正确答案:A,D

第4题:

Which the statement is true about web container session management()?

  • A、 Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
  • B、 To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
  • C、 If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
  • D、 The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

正确答案:C

第5题:

A developer is designing a web application that must support multiple interfaces,including: an XML web service for B2B HTML for web-based clients WML for wireless customers. Which designpattern provides a solution for this problem?()

  • A、Session Facade
  • B、Business Delegate
  • C、Data Access Object
  • D、Model-View-Controller
  • E、Chain of Responsibility

正确答案:D

第6题:

You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()

  • A、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.
  • B、The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.
  • C、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.
  • D、The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.

正确答案:A

第7题:

A developer for the Company.com web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?()  

  • A、 The developer must ensure that every URL is properly encoded using the appropriate URL rewriting APIs
  • B、 The developer must provide an alternate mechanism for managing sessions and abandon theHttpSession mechanism entirely
  • C、 The developer can ignore this issue. Web containers are required to support automatic URL rewriting when cookies are not supported
  • D、 The developer must ass the string ?id= to the end of every URL to ensure that the conversion with the browser can continue.

正确答案:A

第8题:

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

  • A、 The init method on a filter is called the first time a servlet mapped to that filter is invoked
  • B、 A filter defined for a servlet must always forward control to the next resource in the filter chain.
  • C、 Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file
  • D、 If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it

正确答案:C

第9题:

Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()

  • A、Add attributes to the session object.
  • B、Add attributes on the request object.
  • C、Add parameters to the request object.
  • D、Use the pageContext object to add request attributes.
  • E、Add parameters to the JSP’s URL when generating the request dispatcher.

正确答案:B,E

第10题:

Which the two about WAR files are true?()

  • A、 WAR files must be located in the web application library directory.
  • B、 WAR files must contain the web application deployment descriptor.
  • C、 WAR files must be created by using archive tools to designed specifically for that purpose. 
  • D、 The web container must serve the content of any META-INF directory located in a WAR file.
  • E、 The web container must allow access to resources in JARs in the web application library directory

正确答案:B,E

更多相关问题