Which two are required elements for the  element of a web applicationdeployment descriptor?()A、realm-nameB、url-patternC、descriptionD、web-resource-nameE、transport-guarantee

题目

Which two are required elements for the  element of a web applicationdeployment descriptor?()

  • A、<realm-name>
  • B、<url-pattern>
  • C、<description>
  • D、<web-resource-name>
  • E、<transport-guarantee>
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which two are valid values for the  element inside a  element of a web application deployment descriptor?()

  • A、 NULL
  • B、 SECURE
  • C、 INTEGRAL
  • D、 ENCRYPTED
  • E、 CONFIDENTIAL

正确答案:C,E

第2题:

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

第3题:

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

  • A、 <realm-name> 
  • B、 <auth-method> 
  • C、 <security-role> 
  • D、 <transport-guarantee> 
  • E、 <web-resource-collection>

正确答案:E

第4题:

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

第5题:

A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()

  • A、Include a listener directive in a JSP page
  • B、configure a listener in the TLD file using the  element
  • C、Include a  element in the web application deployment descriptor
  • D、configure a listener in the application deployment descriptor, using the  element
  • E、Include a class implementing ServletContextListener as part of the web application deploymen

正确答案:D,E

第6题:

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

  • A、<realm-name>
  • B、<auth-method>
  • C、<security-role>
  • D、<transport-guarantee>
  • E、<web-resource-collection>

正确答案:E

第7题:

Given the web application deployment descriptor elements: 11. 12.ParamAdder 13.com.example.ParamAdder 14.... 24. 25.ParamAdder 26.MyServlet 27. 28. Which element, inserted at line 27,causes the ParamAdder filter to be applied when MyServlet is invokedby another servlet using the RequestDispatcher.include method?()

  • A、<include/>
  • B、<dispatcher>INCLUDE</dispatcher>
  • C、<dispatcher>include</dispatcher>
  • D、<filter-condition>INCLUDE</filter-condition>
  • E、<filter-condition>include</filter-condition>

正确答案:B

第8题:

Which two pieces of information are needed when declaring the web resource collection in the deployment descriptor?()

  • A、 the URL pattern that requires authorization
  • B、 the HTTP methods that require authorization
  • C、 the users allowed access to the web resource
  • D、 the J2EE roles allowed access to the web resource
  • E、 the authentication mechanism required by the web resource

正确答案:A,B

第9题:

Given: String value = getServletContext().getInitParameter("foo"); in an HttpServlet and a web applicationdeployment descriptor that contains: foo frodo Which two are true?()

  • A、The foo initialization parameter CANNOT be set programmatically.
  • B、Compilation fails because getInitParameter returns type Object.
  • C、The foo initialization parameter is NOT a servlet initialization parameter.
  • D、Compilation fails because ServletContext does NOT have a getInitParameter method.
  • E、The foo parameter must be defined within the  element of the deployment descriptor.

正确答案:A,C

第10题:

When adding a  element to a web application deployment descriptor, the inclusion of which sub-element requires the definition of an error page()?

  • A、 <realm-name> 
  • B、 <auth-metod> 
  • C、 <auth-constraint> 
  • D、 <form-login-config> 
  • E、 <user-data-constaint>

正确答案:D

更多相关问题