更多“单选题Which EL expression evaluates to the request URI?()A ${requestURI}B ${request.URI}C ${request.getURI}D ${request.requestURI}E ${requestScope.requestURI}F ${pageContext.request.requestURI}”相关问题
  • 第1题:

    JSP表达式语言可用于在网页上生成动态内容并代替JSP脚本元素,JSP表达式语言的语法是()。   

    • A、 {EL expression}
    • B、 ${EL expression}
    • C、 @{EL expression}
    • D、 &{EL expression}

    正确答案:B

  • 第2题:

    Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()

    • A、REQUEST_URI
    • B、javax.servlet.forward.request_uri
    • C、javax.servlet.forward.REQUEST_URI
    • D、javax.servlet.request_dispatcher.request_uri
    • E、javax.servlet.request_dispatcher.REQUEST_URI

    正确答案:B

  • 第3题:

    Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()

    • A、${userName}
    • B、${cookie.userName}
    • C、${cookie.user.name}
    • D、${cookies.userName[0]}

    正确答案:B

  • 第4题:

    Given an HttpServletRequest request, which retrieves an object of type Account with an Id of “account”?()

    • A、 Account account = request.get Resource(”account”):
    • B、 Account account = request.get Attribute (“account”):
    • C、 Account account = request.get Parameter (account”):
    • D、 Account account = (Account)request.getResource (“account”):
    • E、 Account account = (Account) request.get Attribute (“account”):
    • F、 Account account = (Account) request.get Paramter (“account”):

    正确答案:E

  • 第5题:

    Given an HttpServletRequest request and HttpServletResponse response,which sets a cookie "username"with the value "joe" in a servlet?()

    • A、request.addCookie("username", "joe")
    • B、request.setCookie("username", "joe")
    • C、response.addCookie("username", "joe")
    • D、request.addHeader(new Cookie("username", "joe"))
    • E、request.addCookie(new Cookie("username", "joe"))
    • F、response.addCookie(new Cookie("username", "joe"))

    正确答案:F

  • 第6题:

    Which EL expression evaluates to the request URI?()

    • A、${requestURI}
    • B、${request.URI}
    • C、${request.getURI}
    • D、${request.requestURI}
    • E、${requestScope.requestURI}
    • F、${pageContext.request.requestURI}

    正确答案:F

  • 第7题:

    单选题
    Given an HttpServletRequest request, which retrieves an object of type Account with an Id of “account”?()
    A

     Account account = request.get Resource(”account”):

    B

     Account account = request.get Attribute (“account”):

    C

     Account account = request.get Parameter (account”):

    D

     Account account = (Account)request.getResource (“account”):

    E

     Account account = (Account) request.get Attribute (“account”):

    F

     Account account = (Account) request.get Paramter (“account”):


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

  • 第8题:

    单选题
    Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()
    A

    ${userName}

    B

    ${cookie.userName}

    C

    ${cookie.user.name}

    D

    ${cookies.userName[0]}


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

  • 第9题:

    单选题
    Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()
    A

    REQUEST_URI

    B

    javax.servlet.forward.request_uri

    C

    javax.servlet.forward.REQUEST_URI

    D

    javax.servlet.request_dispatcher.request_uri

    E

    javax.servlet.request_dispatcher.REQUEST_URI


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

  • 第10题:

    单选题
    Which retrieves all cookies sent in a given HttpSErvletRequest request?()
    A

     request.getCookies()

    B

     request.getAttributes()

    C

     request.getSession ().getCookies()

    D

     request.getSession (). GetAttributes()


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

  • 第11题:

    单选题
    Which EL expression evaluates to the request URI?()
    A

    ${requestURI}

    B

    ${request.URI}

    C

    ${request.getURI}

    D

    ${request.requestURI}

    E

    ${requestScope.requestURI}

    F

    ${pageContext.request.requestURI}


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

  • 第12题:

    单选题
    Given an HttpServlet Request request and Http Servlet Response response, which sets a cookie “username” with the value “joe” in a servlet.?()
    A

     request.add Cookie (“username”. “joe”)

    B

     request.set Cookie (“username, “joe”)

    C

     response.add Cookie (username”, “joe”))

    D

     request.add Header (new Cookie (“username”, “joe”))

    E

     request.add Cookie (new Cookie (“username”, “joe”))

    F

     response.add Cookie (new Cookie (“username”, “joe”))

    G

     response.add Header (new Cookie (“username”, “joe”))


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

  • 第13题:

    Given: 11.<% 12.request.setAttribute("vals", new String[]{"1","2","3","4"}); 13.request.setAttribute("index", "2"); 14.%> 15.<%-- insert code here --%> Which three EL expressions, inserted at line 15,are valid and evaluate to "3"?()

    • A、${vals.2}
    • B、${vals["2"]}
    • C、${vals.index}
    • D、${vals[index]}
    • E、${vals}[index]
    • F、${vals[vals[index-1]]}

    正确答案:B,D,F

  • 第14题:

    If the policies shown below evaluate as described, which action will occur for the listed policy expression?() Policy A=True Policy B=True Policy C=True Policy D=False Policy Expression: !(A&&B)||C

    • A、The policy evaluates to True (a&&n).
    • B、The policy evaluates to True because of c.
    • C、The policy evaluates to False because of c.
    • D、The policy evaluates to False because of !(a&&b).

    正确答案:B

  • 第15题:

    JAVA EE中,JSP表达式语言的语法是()。

    • A、{EL expression}
    • B、${EL expression}
    • C、&{EL expression}

    正确答案:B

  • 第16题:

    Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()

    • A、 ${product ID}
    • B、 ${param.productID}
    • C、 ${params.productID}
    • D、 ${params.productID[1]}
    • E、 ${paramvalues.productID}
    • F、 ${paramValues.productID[0]}
    • G、 ${pageContext.request.productID}

    正确答案:B,F

  • 第17题:

    A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()

    • A、 The method invoked by this function must be statie.
    • B、 The function class must implement the Function interface.
    • C、 The expression is NOT a valid EL expression for invoking a function.
    • D、 The function must be declared in a web.xml file using the  element.
    • E、 The function class must have a method with the signature:Void bloof (java.lang.Strings)

    正确答案:A

  • 第18题:

    Which four statements correctly describe functions that are available in SQL? ()

    • A、INSTR returns the numeric position of a named character.
    • B、NVL2 returns the first non-null expression in the expression list.
    • C、TRUNCATE rounds the column, expression, or value to n decimal places.
    • D、DECODE translates an expression after comparing it to each search value.
    • E、TRIM trims the heading of trailing characters (or both) from a character string.
    • F、NVL compares two expressions and returns null if they are equal, or the first expression of they are not equal.
    • G、NULLIF compares twp expressions and returns null if they are equal, or the first expression if they are not equal.

    正确答案:A,D,E,G

  • 第19题:

    单选题
    A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()
    A

     The method invoked by this function must be statie.

    B

     The function class must implement the Function interface.

    C

     The expression is NOT a valid EL expression for invoking a function.

    D

     The function must be declared in a web.xml file using the  element.

    E

     The function class must have a method with the signature:Void bloof (java.lang.Strings)


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

  • 第20题:

    单选题
    JSP表达式语言可用于在网页上生成动态内容并代替JSP脚本元素,JSP表达式语言的语法是()。
    A

     {EL expression}

    B

     ${EL expression}

    C

     @{EL expression}

    D

     &{EL expression}


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

  • 第21题:

    多选题
    Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()
    A

    ${product ID}

    B

    ${param.productID}

    C

    ${params.productID}

    D

    ${params.productID[1]}

    E

    ${paramvalues.productID}

    F

    ${paramValues.productID[0]}

    G

    ${pageContext.request.productID}


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

  • 第22题:

    单选题
    If the policies shown below evaluate as described, which action will occur for the listed policy expression?() Policy A=True Policy B=True Policy C=True Policy D=False Policy Expression: !(A&&B)||C
    A

    The policy evaluates to True (a&&n).

    B

    The policy evaluates to True because of c.

    C

    The policy evaluates to False because of c.

    D

    The policy evaluates to False because of !(a&&b).


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

  • 第23题:

    单选题
    Which retrieves the binary input stream on line 13?()
    A

     request.get Writer ():

    B

     request.get Reader ():

    C

     request.get Input Stream():

    D

     request.get Resource As Stream():

    E

     request.get Resource As Stream (Servlet Request. REQUEST):


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

  • 第24题:

    单选题
    JAVA EE中,JSP表达式语言的语法是()。
    A

    {EL expression}

    B

    ${EL expression}

    C

    &{EL expression}


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