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]}

题目

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
更多“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题:

    Which of the following locations would hold a user’s documents and data in Windows XP?()

    • A、C:/Program Files/Users/%username&
    • B、C:/Documents and Settings/%username%
    • C、C:/Users/%username%
    • D、C:/Users/Documents and Settings/%username%

    正确答案:B

  • 第2题:

    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

  • 第3题:

    You would like to configure your PC's IP  address of 10.10.0.156 as an FTP host with a username of user and a password of mypass.Which configuration command accomplishes this goal?()

    • A、host user pc 10.10.0.156 ftp user mypass
    • B、host user pc 10.10.0.156 tftp user mypass
    • C、host name user pc 10.10.0.156 ftp user mypass
    • D、host name user pc 10.10.0.156 tftp user mypass

    正确答案:A

  • 第4题:

    以下EL表达式的语法结构中正确的是()。 

    • A、 $[user. userName]
    • B、 #[user. userName]
    • C、 ${user. username}
    • D、 #{user. username}

    正确答案:C

  • 第5题:

    bill has an author names field named all editors that calculates a list of possible editors of the doc based on values users has entered into another field. The list only contains users’ first and last names, and only should be displayed to users who can edit doc.Which of the following hide-when formulas should bill use to control the display of the field?()

    • A、 @isnotmember(alleditors,@username) 
    • B、 @isnotmember(@name([cn]);@username) 
    • C、 @isnotmember(alleditors;@name([cn ];@username)) 
    • D、 if(@isnotmember(alleditors;@name([cn];@username);@true;@false))

    正确答案:C

  • 第6题:

    A web application uses the HttpSession mechanism to determine if a user is "logged in." When a usersupplies a valid user name and password, an HttpSession is created for that user. The user has access tothe application for only 15 minutes after logging in. The code must determine how long the user has beenlogged in, and if this time is greater than 15 minutes, must destroy the HttpSession. Which method in HttpSession is used to accomplish this?()

    • A、Getcreationtime
    • B、Invalidateafter
    • C、Getlastaccessedtime
    • D、Getmaxinactiveinterval

    正确答案:A

  • 第7题:

    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、Roles.CreateRole(listName);User.InInRole(listName);
    • B、Roles.CreateRole(listName);Roles.AddUserToRole(useName, listName);
    • C、Roles.RoleExists(listName);Roles.AddUserToRole(useName, listName);
    • D、Roles.RoleExists(listName);User.InInRole(listName);

    正确答案:B

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

    单选题
    Which of the following locations would hold a user’s documents and data in Windows XP?()
    A

    C:/Program Files/Users/%username&

    B

    C:/Documents and Settings/%username%

    C

    C:/Users/%username%

    D

    C:/Users/Documents and Settings/%username%


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

  • 第10题:

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

    Roles.CreateRole(listName);User.InInRole(listName);

    B

    Roles.CreateRole(listName);Roles.AddUserToRole(useName, listName);

    C

    Roles.RoleExists(listName);Roles.AddUserToRole(useName, listName);

    D

    Roles.RoleExists(listName);User.InInRole(listName);


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

  • 第11题:

    单选题
    关于点操作符和“[ ]”,以下说法不正确的是()。
    A

     ${user. username}等价于${user. [username]}

    B

     ${user. username}等价于${user. [“username”]}

    C

     如果user是一个List, 则${user[0]}的写法是正确的

    D

     如果user是一个数组, 则${user[0]}的写法是正确的


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

  • 第12题:

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

    Roles.CreateRole(listName)User.IsInRole(listName)

    B

    Roles.CreateRole(listName)Roles.AddUserToRole(userName, listName)

    C

    Roles.RoleExists(listName)Roles.AddUserToRole(userName, listName)

    D

    Roles.RoleExists(listName)User.IsInRole(listName)


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

  • 第13题:

    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

  • 第14题:

    A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user.  The user has access to the application for only 15 minutes after logging in. The code must determine how long the user has been logged in, and if this time is greater than 15 minutes, must destroy the HttpSession.  Which method in HttpSession is used to accomplish this?()

    • A、 getCreationTime
    • B、 invalidateAfter
    • C、 getLastAccessedTime
    • D、 getMaxInactiveInterval

    正确答案:A

  • 第15题:

    关于点操作符和“[ ]”,以下说法不正确的是()。

    • A、 ${user. username}等价于${user. [username]}
    • B、 ${user. username}等价于${user. [“username”]}
    • C、 如果user是一个List, 则${user[0]}的写法是正确的
    • D、 如果user是一个数组, 则${user[0]}的写法是正确的

    正确答案:A

  • 第16题:

    In which of the following default locations would a user’s home folder reside in Windows XP?()

    • A、C:/Program Files/%username%
    • B、C:/Users/%username%
    • C、C:/Documents and Settings/%username%
    • D、C:/Windows/%username%

    正确答案:C

  • 第17题:

    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

  • 第18题:

    Consider the Mysql Enterprise Audit plugin. Which statement is true when you identify a connection event that has used external authentication?()

    • A、The attribute "STATUS" is set to the string EXTERNAL_AUTH
    • B、The attribute "PRIV_USER" contains the username
    • C、The event type that is given in the attribute "NAME" is EXTERNAL_AUTH
    • D、There is no differentiation between native and external authentication events
    • E、External authentication is managed through external auditing logs
    • F、The "PROXY_PRIV" user shows a username if external authentication is used

    正确答案:E

  • 第19题:

    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、Roles.CreateRole(listName)User.IsInRole(listName)
    • B、Roles.CreateRole(listName)Roles.AddUserToRole(userName, listName)
    • C、Roles.RoleExists(listName)Roles.AddUserToRole(userName, listName)
    • D、Roles.RoleExists(listName)User.IsInRole(listName)

    正确答案:B

  • 第20题:

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

  • 第21题:

    单选题
    以下EL表达式的语法结构中正确的是()。
    A

     $[user. userName]

    B

     #[user. userName]

    C

     ${user. username}

    D

     #{user. username}


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

  • 第22题:

    单选题
    bill has an author names field named all editors that calculates a list of possible editors of the doc based on values users has entered into another field. The list only contains users’ first and last names, and only should be displayed to users who can edit doc.Which of the following hide-when formulas should bill use to control the display of the field?()
    A

     @isnotmember(alleditors,@username) 

    B

     @isnotmember(@name([cn]);@username) 

    C

     @isnotmember(alleditors;@name([cn ];@username)) 

    D

     if(@isnotmember(alleditors;@name([cn];@username);@true;@false))


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

  • 第23题:

    单选题
    In which of the following default locations would a user’s home folder reside in Windows XP?()
    A

    C:/Program Files/%username%

    B

    C:/Users/%username%

    C

    C:/Documents and Settings/%username%

    D

    C:/Windows/%username%


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