欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCDCD(310-081)

单项选择题


What is the result when a request is sent to MyServlet?()

    A. An IllegalStateException is thrown at runtime.
    B. An InvalidSessionException is thrown at runtime.
    C. The string “value=null” appears in the response stream.
    D. The string “value=myAttributeValue” appears in the response stream.

点击查看答案

相关考题

  • 单项选择题
    Which statement, inserted at line 16, unbinds an attribute from a session?()

    A. session.unbind(“key”);
    B. session.remove(“key”);
    C. session.removeAttribute(“key”);
    D. session.unbindAttribute(“key”);
    E. session.deleteAttribute(“key”);

  • 单项选择题
    Whichthe statementistrueaboutwebcontainersessionmanagement()?

    A. Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
    B. To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
    C. If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
    D. The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

  • 多项选择题
    Which two are true? ()

    A. Tag files can only be accessed using a tagdir attribute.
    B. The sort.jsp page translates successfully and invokes the tag defined by beta.tag.
    C. The sort.jsp page produces a translation error because a taglib directive must always have a uri attribute.
    D. Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB-INF/tags.
    E. The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is created and added to the web application.

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题