开发者

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

开发者 https://www.devze.com 2022-12-26 05:27 出处:网络
I\'m using <%=request.getRemoteUser()%> to retrieve the logged on user\'s ID within Tomcat.What would be the equivalent using开发者_Go百科 JSP Simple Expression Language?It\'s

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


It's

${pageContext.request.remoteUser}

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

0

精彩评论

暂无评论...
验证码 换一张
取 消