Which EL expression evaluates to that user name?

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?

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

E.
${cookies.userName}[1]

F.
${cookies.get(‘userName’)}

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *