Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我<%=request.getRemoteUser()%>用来在 Tomcat 中检索登录用户的 ID。使用 JSP 简单表达式语言的等价物是什么?
<%=request.getRemoteUser()%>
它是
${pageContext.request.remoteUser}
要了解更多关于隐式 EL 对象之类PageContext的信息,请查看此处。
PageContext