tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 梁炳場 <pc.le...@gmail.com>
Subject Re: How to get login username with pageContext?
Date Tue, 04 Oct 2005 14:57:35 GMT
It is blank if it is printed like this

<%
      String user = request.getRemoteUser();
%>
<c:out value="${user}" />



2005/10/4, Raghupathy,Gurumoorthy <gurumoorthy.raghupathy@uk.fid-intl.com>:
> <%
>        String user = request.getRemoteUser();
>
> %>
>
> -----Original Message-----
> From: pc.leung@gmail.com [mailto:pc.leung@gmail.com]
> Sent: 04 October 2005 15:34
> To: Tomcat Users List
> Subject: How to get login username with pageContext?
>
>
> <%
>        pageContext.getRequest().???
>                List userRoleList =
> UserRoleService.getInstance().getUserRoleList();
> %>
>
> I fail to find getRemoteUser() in pageContext.getRequest
> after login with JDBCRealm.
> I'd like to pass it in as a parameter in getUserRoleList().
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message