Which EL expression evaluates to the request URI?

Which EL expression evaluates to the request URI?

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}

G.
${requestScope.request.requestDRI}



Leave a Reply 4

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


giuseppe

giuseppe

F request is not an EL implicit Object

noname

noname

just tested it F works just fine

Neo

Neo

F

The requestScope is NOT the request object, use pageContext to get to everything else.

dean

dean

Actually B works as well, just tested it…