dacracot
dacracot

Reputation: 22348

What is the JSP EL equivalent for request.getRemoteUser()?

I'm using <%=request.getRemoteUser()%> to retrieve the logged on user's ID within Tomcat. What would be the equivalent using JSP Simple Expression Language?

Upvotes: 3

Views: 5547

Answers (1)

BalusC
BalusC

Reputation: 1108742

It's

${pageContext.request.remoteUser}

To learn more about implicit EL objects like PageContext, have a look here.

Upvotes: 9

Related Questions