Which is true about the web container request processing mod

题目
单选题
Which is true 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.

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

第1题:

Which the three are true about servlet filters?()

  • A、 A filter must implement the destroy method
  • B、 A filter must implement the doFilter method
  • C、 A servlet may have multiple filters associated with it
  • D、 A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain  interface
  • E、 A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward method
  • F、 For each  element in the web application deployment descriptor, multiple instances of a filter may be created by the web container

正确答案:A,B,C

第2题:

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

第3题:

Which 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

第4题:

Which two are true regarding a web application class loader?()

  • A、A web application may override the web container’s implementation classes.
  • B、A web application running in a J2EE product may override classes in the javax.* namespace.
  • C、A web application class loader may NOT override any classes in the java.* and javax.* namespaces.
  • D、Resources in the WAR class directory or in any of the JAR files within the library directory may be accessed using the J2SE semantics of getResource.

正确答案:C,D

第5题:

Which ONE of the following statements about Domino Enterprise server is true?()

  • A、Can host Active Server Pages Web sites
  • B、Can host PHP Web sites
  • C、Includes a DB2 server
  • D、Includes an integrated Web application server

正确答案:D

第6题:

Which two are true about authentication?()

  • A、Form-based logins should NOT be used with HTTPS.
  • B、When using Basic Authentication the target server is NOT authenticated.
  • C、J2EE compliant web containers are NOT required to support the HTTPS protocol.
  • D、Web containers are required to support unauthenticated access to unprotected web resources.

正确答案:B,D

第7题:

which of the following is not true about the classification of the cantainers?()

  • A、containers are classified as general purpose (dry cargo) container and specific purpose container
  • B、general purpose container (GP) is suitable for the widest varieties of cargo
  • C、specific purpose container is suitable for the specific cargo
  • D、bulk container, reefer container, open-top container are all general purpose containers

正确答案:D

第8题:

Which statement is true about a distributed call control environment and the processing of dialed digits from an IP phone?()

  • A、The router that is directly connected to the IP phone will look up the called number in its call routing table.
  • B、The router that is directly connected to the IP phone will inform its call agent when a service request is detected.
  • C、When the IP phone is picked up,the IP phone initiates the service request.
  • D、The directly connected router passes the collected digits to its call agent,and the call agent looks up in its call-routing table the called number.

正确答案:A

第9题:

Given in a single JSP page: <%@ taglib prefix=’java’ uri=’myTags’ %> <%@ taglib prefix=’JAVA’ uri=’moreTags’ %>  Which two are true?()

  • A、The prefix ’java’ is reserved.
  • B、The URI ’myTags’ must be properly mapped to a TLD file by the web container.
  • C、A translation error occurs because the prefix is considered identical by the web container.
  • D、For the tag usage , the tag1 must be unique in the union of tag names in ’myTags’ and’moreTags’.

正确答案:A,B

第10题:

You are building a Front Controller using a JSP page and you need to determine if the user’s session hasNOT been created yet and perform some special processing for this case. Which scriptlet code snippet willperform this test?()

  • A、<% if ( request.getSession(false) == null ) {// special processing} %>
  • B、<% if ( request.getHttpSession(false) == null ) {// special processing} %>
  • C、<% if ( requestObject.getSession(false) == null ) { // special processing} %>
  • D、<% if ( requestObject.getHttpSession(false) == null ) { // special processing} %>

正确答案:A

更多相关问题