单选题Which implicit object is used in a JSP page to retrieve values associated with  entries inthe deployment descriptor?()A ConfigB RequestC SessionD Application

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


相似考题
更多“Which implicit object is used in a JSP page to retrieve valu”相关问题
  • 第1题:

    Which three occur during JSP page translation?()

    • A、 The jspInit method is called.
    • B、 The JSP page implementation class is created.
    • C、 The JSP page implementation class is compiled.
    • D、 The JSP page is validated for syntatic correctness.
    • E、 The associated tag files are validated for syntatic correctness.

    正确答案:B,C,D

  • 第2题:

    Which the two are concerning the objects available to developers creating tag files?()

    • A、 The session object must be declared explicity.
    • B、 The request and response objects are available implicity.
    • C、 The output stream is available through the implicit outStream object.
    • D、 The servlet context is available through the implicit servletContext object.
    • E、 The JspContext for the tag file is available through the implicit jspContext object.

    正确答案:B,E

  • 第3题:

    You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() <title>

    • A、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
    • B、<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
    • C、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
    • D、<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>

    正确答案:A

  • 第4题:

    Which the JSTL code snippet can be used to import content from another web resource?()

    • A、 <c:import url=*foo.jsp”/> 
    • B、 <c:import page=*foo.jsp”/> 
    • C、 <c:include url=*foo.jsp”/> 
    • D、 <c:include page=*foo.jsp”/> 
    • E、 Importing cannot be done in JSTL. A standard action must be used instead.

    正确答案:A

  • 第5题:

    The JSP developer wants a comment to be visible in the final output to the browser. Which comment styleneeds to be used in a JSP page?()

    • A、<!-- this is a comment -->
    • B、<% // this is a comment %>
    • C、<%-- this is a comment --%>
    • D、<% /** this is a comment **/ %>

    正确答案:A

  • 第6题:

    单选题
    Which JSP standard action can be used to import content from a resource called foo.jsp?()
    A

    <jsp:import file=’foo.jsp’ />

    B

    <jsp:import page=’foo.jsp’ />

    C

    <jsp:include page=’foo.jsp’ />

    D

    <jsp:include file=’foo.jsp’ />


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

  • 第7题:

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

  • 第8题:

    单选题
    Which JSTL code snippet can be used to import content from another web resource?()
    A

    <c:import url=foo.jsp/>

    B

    <c:import page=foo.jsp/>

    C

    <c:include url=foo.jsp/>

    D

    <c:include page=foo.jsp/>


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

  • 第9题:

    单选题
    The JSP developer wants a comment to be visible in the final output to the browser. Which comment styleneeds to be used in a JSP page?()
    A

    <!-- this is a comment -->

    B

    <% // this is a comment %>

    C

    <%-- this is a comment --%>

    D

    <% /** this is a comment **/ %>


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

  • 第10题:

    单选题
    You need to create a JavaBean object that is used only within the current JSP page. It must NOT beaccessible to any other page including those that this page might import. Which JSP standard action canaccomplish this goal?()
    A

    <jsp:useBean id=’pageBean’ type=’com.example.MyBean’ />

    B

    <jsp:useBean id=’pageBean’ class=’com.example.MyBean’ />

    C

    <jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ />

    D

    <jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ />


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

  • 第11题:

    单选题
    Which the JSTL code snippet can be used to import content from another web resource?()
    A

     <c:import url=*foo.jsp”/> 

    B

     <c:import page=*foo.jsp”/> 

    C

     <c:include url=*foo.jsp”/> 

    D

     <c:include page=*foo.jsp”/> 

    E

     Importing cannot be done in JSTL. A standard action must be used instead.


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

  • 第12题:

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


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

  • 第13题:

    You need to create a JavaBean object that is used only within the current JSP page. It must NOT beaccessible to any other page including those that this page might import. Which JSP standard action canaccomplish this goal?()

    • A、<jsp:useBean id=’pageBean’ type=’com.example.MyBean’ />
    • B、<jsp:useBean id=’pageBean’ class=’com.example.MyBean’ />
    • C、<jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ />
    • D、<jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ />

    正确答案:B

  • 第14题:

    You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()

    • A、<jsp:insert page=’${bodyURL}’ />
    • B、<jsp:insert file=’${bodyURL}’ />
    • C、<jsp:include page=’${bodyURL}’ />
    • D、<jsp:include file=’${bodyURL}’ />
    • E、<jsp:insert page=’<%= bodyURL %>’ />

    正确答案:C

  • 第15题:

    A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()

    • A、id
    • B、name
    • C、bean
    • D、type
    • E、scope

    正确答案:A,D,E

  • 第16题:

    A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization?()

    • A、Id
    • B、Val
    • C、Name
    • D、Param
    • E、Value
    • F、Property

    正确答案:C,E,F

  • 第17题:

    多选题
    A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()
    A

    id

    B

    name

    C

    bean

    D

    type

    E

    scope


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

  • 第18题:

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


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

  • 第19题:

    多选题
    Which the two are concerning the objects available to developers creating tag files?()
    A

    The session object must be declared explicity.

    B

    The request and response objects are available implicity.

    C

    The output stream is available through the implicit outStream object.

    D

    The servlet context is available through the implicit servletContext object.

    E

    The JspContext for the tag file is available through the implicit jspContext object.


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

  • 第20题:

    单选题
    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); %>


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

  • 第21题:

    单选题
    Your web page includes a Java SE v1.5 applet with the following declaration: 11. 13. 14. Which HTTP method is used to retrieve the applet code?()
    A

    GET

    B

    PUT

    C

    POST

    D

    RETRIEVE


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

  • 第22题:

    单选题
    You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()
    A

    <jsp:insert page=’${bodyURL}’ />

    B

    <jsp:insert file=’${bodyURL}’ />

    C

    <jsp:include page=’${bodyURL}’ />

    D

    <jsp:include file=’${bodyURL}’ />

    E

    <jsp:insert page=’<%= bodyURL %>’ />


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

  • 第23题:

    多选题
    A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization?()
    A

    Id

    B

    Val

    C

    Name

    D

    Param

    E

    Value

    F

    Property


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

  • 第24题:

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


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