单选题Within a web application deployment descriptor, which maps the com.example.LoginServlet servlet to /utils/LoginServlet?()A AB BC CD D

题目
单选题
Within a web application deployment descriptor, which maps the com.example.LoginServlet servlet to /utils/LoginServlet?()
A

A

B

B

C

C

D

D

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

第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 three are described in the standard web application deployment descriptor?()

  • A、session configuration
  • B、MIME type mappings
  • C、context root for the application
  • D、servlet instance pool configuration
  • E、web container default port bindings
  • F、Servlet Context initialization parameters

正确答案:A,B,F

第3题:

Withinawebapplicationdeploymentdescriptor,whichmapsthecom.example.LoginServletservletto/utils/LoginServlet?()

A.A

B.B

C.C

D.D


参考答案:D

第4题:

Which the three interfaces need to be declared in the web application deployment descriptor? ()

  • A、 HttpSessionListener
  • B、 HttpSessionBindingListener
  • C、 HttpSessionTimedOutListener
  • D、 HttpSessionAttributeListener
  • E、 HttpSessionActivationListener
  • F、 HttpSessionPassivatedListener

正确答案:B,D,E

第5题:

Which element is the parent of the  tag in the web application deployment descriptor? ()

  • A、 <web-app> 
  • B、 <filters> 
  • C、 <servlet> 
  • D、 <filter-list> 

正确答案:A

第6题:

Which three are described in the standard web application deployment descriptor?()  

  • A、 session configuration
  • B、 MIME type mappings
  • C、 context root for the application
  • D、 servlet instance pool configuration
  • E、 web container default port bindings
  • F、 ServletContext initialization parameters

正确答案:A,B,F

第7题:

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

第8题:

Which two actions protect a resource file from direct HTTP access within a web application?()

  • A、Placing it in the /secure directory
  • B、Placing it in the /WEB-INF directory
  • C、Placing it in the /META-INF/secure directory
  • D、Creating a  element within the deployment descriptor

正确答案:B,C

第9题:

Which three are valid URL mappings to a servlet in a web deployment descriptor?()

  • A、*/*
  • B、*.do
  • C、MyServlet
  • D、/MyServlet
  • E、/MyServlet/*
  • F、MyServlet/*.jsp

正确答案:B,D,E

第10题:

Which three are guaranteed to be valid for the  element of a web application deployment descriptor?()

  • A、 FORM
  • B、 DIGEST
  • C、 NORMAL
  • D、 ENCRYPTED
  • E、 CLIENT-CERT

正确答案:A,B,E

更多相关问题