Given a web application in which the cookie userName is expe

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

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

GivenawebapplicationinwhichthecookieuserNameisexpectedtocontainthenameoftheuser.Which ELexpressionevaluatestothatusername?()

A.${userName}

B.${cookie.userName}

C.${cookie.user.name}

D.${cookies.userName[0]}


参考答案:B

第2题:

Which statement is true about web container session management?()

  • 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.

正确答案:C

第3题:

创建一个Cookie的正确代码( )。

A、Response.Cookies["userName"]="apple"

B、Cookies["userName"]="apple"

C、Cookies["userName"].Value="apple"

D、Response.Cookies["userName"].Value="apple"


参考答案:D

第4题:

An enterprise has an internal web application that needs stickiness managed by a Cluster. Allemployees access the application through a proxy. What is the correct sticky load balancing policy? ()

  • A、urlhash
  • B、url persistency
  • C、cookie persistency
  • D、default persistency

正确答案:C

第5题:

Which three statistics does the Executive report summarize?() (Choose three.)

  • A、latency and loss
  • B、compression results
  • C、traffic (by application)
  • D、CRC and alignment errors
  • E、user access (by username)

正确答案:A,B,C

第6题:

An enterprise has an internal web application that needs stickiness managed by a Cluster. Allemployees access the application through a proxy. What is the correct sticky load balancing policy? ()

A. urlhash

B. url persistency

C. cookie persistency

D. default persistency


参考答案:C

第7题:

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

  • A、${productID}
  • B、${param.productID}
  • C、${params.productID}
  • D、${params.productID[1]}
  • E、${paramValues.productID}
  • F、${paramValues.productID[0]}

正确答案:B,F

第8题:

You create a Web site that is for members only. The Web site allows members to create lists of users that have access to information about member profiles. The name of the list is stored in the listName variable. The user name of the user to whom access is given is stored in the username variable.You need to enable members to manage their lists of users.Which code segment should you use?()

A.

B.

C.

D.


参考答案:B

第9题:

In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()

  • A、/WEB-INF
  • B、/META-INF
  • C、/WEB-INF/tlds
  • D、/META-INF/tlds
  • E、/WEB-INF/resources
  • F、/META-INF/resources

正确答案:A,C,E

第10题:

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

更多相关问题