单选题Given this fragment from a Java EE deployment descriptor: 124. beta.html 125. alpha.html And this request from a browser:http://www.sun.com/SCWCDtestApp/register Which statement is correct,when the container receives this request?()A This deployment de

题目
单选题
Given this fragment from a Java EE deployment descriptor: 124. beta.html 125. alpha.html And this request from a browser:http://www.sun.com/SCWCDtestApp/register Which statement is correct,when the container receives this request?()
A

This deployment descriptor is NOT valid.

B

The container first looks in the register directory for beta.html.

C

The container first looks in the register directory for alpha.html.

D

The container first looks for a servlet mapping in the deployment descriptor.


相似考题
更多“单选题Given this fragment from a Java EE deployment descriptor: 124. beta.html 125. alpha.html And this request from a browser:http://www.sun.com/SCWCDtestApp/register Which statement is correct,when the container receives this request?()A This deployment de”相关问题
  • 第1题:

    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

  • 第2题:

    Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()

    • A、Every  tag must have at least one  tag.
    • B、A  tag can have many  tags.
    • C、A given  tag can apply to only one  tag.
    • D、A given  tag can contain from zero to many  tags.
    • E、It is possible to construct a valid  tag such that,for a given resource,no user rolescan access that resource.

    正确答案:B,E

  • 第3题:

    Given a header in an HTTP request:X-Retries:4 Which two retrieve the value of the header from a given HttpServletRequest request?()

    • A、Request.getHeader("X-Retries")
    • B、Request.getIntHeader("X-Retries")
    • C、Request.getRequestHeader("X-Retries")
    • D、Request.getHeaders("X-Retries").get(0)
    • E、Request.getRequestHeaders("X-Retries").get(0)

    正确答案:A,B

  • 第4题:

    Given that www.example.com/SCWCDtestApp is a validly deployed Java EE web application and that all ofthe JSP files specified in the requests below exist in the locations specified. Which two requests,issuedfrom a browser,will return an HTTP 404 error?()

    • A、http://www.example.com/SCWCDtestApp/test.jsp
    • B、http://www.example.com/SCWCDtestApp/WEB-INF/test.jsp
    • C、http://www.example.com/SCWCDtestApp/WEB-WAR/test.jsp
    • D、http://www.example.com/SCWCDtestApp/Customer/test.jsp
    • E、http://www.example.com/SCWCDtestApp/META-INF/test.jsp
    • F、http://www.example.com/SCWCDtestApp/Customer/Update/test.jsp

    正确答案:B,E

  • 第5题:

    You are creating a web form with this HTML: 11. 12. 13. 14. 15. Which HTTP method is used when sending this request from the browser?()

    • A、GET
    • B、PUT
    • C、POST
    • D、SEND
    • E、FORM

    正确答案:A

  • 第6题:

    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

    正确答案:A,C

  • 第7题:

    单选题
    You are creating a web form with this HTML: 11. 12. 13. 14. 15. Which HTTP method is used when sending this request from the browser?()
    A

    GET

    B

    PUT

    C

    POST

    D

    SEND

    E

    FORM


    正确答案: 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


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

  • 第9题:

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

  • 第10题:

    单选题
    A web browser need NOT always perform a complete request for a particular page that it suspects mightNOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partialresponse from the web server; this response includes information, such as the Last-Modified date but NOTthe body of the page. Which HTTP method will the browser use to retrieve such a partial response?()
    A

    GET

    B

    ASK

    C

    SEND

    D

    HEAD

    E

    TRACE


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

  • 第11题:

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

    A

    B

    B

    C

    C

    D

    D

    E

    E


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

  • 第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题:

    Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()

    • A、Line 24 can never be reached.
    • B、The deployment descriptor is NOT valid.
    • C、If line 24 executes, the user’s role will be Admin.
    • D、If line 24 executes, the user’s role will be Administrator.
    • E、If line 24 executes the user’s role will NOT be predictable.

    正确答案:D

  • 第14题:

    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

  • 第15题:

    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

  • 第16题:

    Given this fragment from a Java EE deployment descriptor: 124. beta.html 125. alpha.html And this request from a browser:http://www.sun.com/SCWCDtestApp/register Which statement is correct,when the container receives this request?()

    • A、This deployment descriptor is NOT valid.
    • B、The container first looks in the register directory for beta.html.
    • C、The container first looks in the register directory for alpha.html.
    • D、The container first looks for a servlet mapping in the deployment descriptor.

    正确答案:D

  • 第17题:

    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.

    正确答案:C

  • 第18题:

    单选题
    Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()
    A

    Line 24 can never be reached.

    B

    The deployment descriptor is NOT valid.

    C

    If line 24 executes, the user’s role will be Admin.

    D

    If line 24 executes, the user’s role will be Administrator.

    E

    If line 24 executes the user’s role will NOT be predictable.


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

  • 第19题:

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


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

  • 第20题:

    单选题
    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.


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

  • 第21题:

    单选题
    Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()
    A

    Line 24 can never be reached.

    B

    The deployment descriptor is NOT valid.

    C

    If line 24 executes, the user’s role will be Admin.

    D

    If line 24 executes, the user’s role will be Administrator.

    E

    If line 24 executes the user’s role will NOT be predictable.


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

  • 第22题:

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

  • 第23题:

    多选题
    Given a header in an HTTP request: X-Retries:4  Which two retrieve the value of the header from a given ServletRequest request? ()
    A

    request.getHeader (“X-Retries”)

    B

    request.getIntHeader (“X-Retries”)

    C

    request.getRequestHeader (“x-Retries”)

    D

    request.getHeaders (“X-Retries”).get (0)

    E

    re request.getRequest Headers (“X-Retries”). Get (0)


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