更多“单选题Which implicit object is used in a JSP page to retrieve values associated with  entries inthe deployment descriptor?()A ConfigB RequestC SessionD Application”相关问题
  • 第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题:

    Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: <% int i = 12; %> <%= i %>  What is the result?()

    • A、<b></b>
    • B、<b>12</b>
    • C、The JSP fails to execute.
    • D、<% int i = 12 %><b><%= i %></b>

    正确答案:C

  • 第3题:

    If you want to use the Java EE platform’s built-in type of authentication that uses a custom HTML page for authentication. Which two statements are true?()

    • A、Your deployment descriptor will need to contain this tag: CUSTOM.
    • B、The related custom HTML login page must be named loginPage.html.
    • C、When you use this type of authentication, SSL is turned on automatically.
    • D、You must have a tag in your deployment descriptor that allows you to point to both a login HTML pageand an HTML page for handling any login errors.
    • E、In the HTML related to authentication for this application, you must use predefined variable names fort he variables that store the user and password values.

    正确答案:D,E

  • 第4题:

    A JSP page needs to instantiate a JavaBean to be used by only that page.  Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()

    • A、Id
    • B、Type
    • C、Name
    • D、Class
    • E、Yscope

    正确答案:A,D

  • 第5题:

    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

  • 第6题:

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

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

    正确答案:C,E

  • 第7题:

    单选题
    Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()
    A

    <b></b>

    B

    <b>12</b>

    C

    The JSP fails to execute.

    D

    <% int i = 12 %><b><%= i %></b>


    正确答案: D
    解析: 暂无解析

  • 第8题:

    单选题
    Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()
    A

     Error

    B

     Exception

    C

     Throwable

    D

     Request error

    E

     Request exception


    正确答案: B
    解析: 暂无解析

  • 第9题:

    单选题
    In a JSP-centric web application, you need to create a catalog browsing JSP page. The catalog is stored asa List object in the catalog attribute of the webapp’s ServletContext object.  Which scriptlet code snippetgives you access to the catalog object?()
    A

    <% List catalog = config.getAttribute(catalog); %>

    B

    <% List catalog = context.getAttribute(catalog); %>

    C

    <% List catalog = application.getAttribute(catalog); %>

    D

    <% List catalog = servletContext.getAttribute(catalog); %>


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()
    A

    The deployment descriptor is invalid.

    B

    The container invokes mainError.jsp.

    C

    The container invokes castError.jsp.

    D

    Neither mainError.jsp nor castError.jsp is invoked.


    正确答案: C
    解析: 暂无解析

  • 第11题:

    多选题
    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
    解析: 暂无解析

  • 第12题:

    单选题
    Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()
    A

    The deployment descriptor is invalid.

    B

    The container invokes mainError.jsp.

    C

    The container invokes castError.jsp.

    D

    Neither mainError.jsp nor castError.jsp is invoked.


    正确答案: B
    解析: 暂无解析

  • 第13题:

    A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()

    • A、 id
    • B、 type
    • C、 name
    • D、 class
    • E、 scope
    • F、 create

    正确答案:A,D

  • 第14题:

    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

  • 第15题:

    Which implicit object is used in a JSP page to retrieve values associated with  entries inthe deployment descriptor?()

    • A、Config
    • B、Request
    • C、Session
    • D、Application

    正确答案:D

  • 第16题:

    Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()

    • A、The deployment descriptor is invalid.
    • B、The container invokes mainError.jsp.
    • C、The container invokes castError.jsp.
    • D、Neither mainError.jsp nor castError.jsp is invoked.

    正确答案:C

  • 第17题:

    Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()

    • A、<class><br/>
    • B、<webapp><br/>
    • C、<servlet><br/>
    • D、<codebase><br/>
    • E、<servlet-class>

    正确答案:E

  • 第18题:

    多选题
    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


    正确答案: C,A
    解析: 暂无解析

  • 第19题:

    多选题
    You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster.    Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()
    A

    Implementation-Version

    B

    Specification-Version

    C

    Extension-Name

    D

    Specification-Vendor

    E

    Implementation-Vendor


    正确答案: C,E
    解析: 暂无解析

  • 第20题:

    单选题
    Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()
    A

    <b></b>

    B

    <b>12</b>

    C

    The JSP fails to execute.

    D

    <% int i = 12 %><b><%= i %></b>


    正确答案: B
    解析: 暂无解析

  • 第21题:

    多选题
    A JSP page needs to instantiate a JavaBean to be used by only that page.  Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()
    A

    Id

    B

    Type

    C

    Name

    D

    Class

    E

    Yscope


    正确答案: A,E
    解析: 暂无解析

  • 第22题:

    单选题
    Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()
    A

    <class><br/>

    B

    <webapp><br/>

    C

    <servlet><br/>

    D

    <codebase><br/>

    E

    <servlet-class>


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    Which defines the welcome files in a web application deployment descriptor?()
    A

    A

    B

    B

    C

    C

    D

    D

    E

    E


    正确答案: B
    解析: 暂无解析