Hi,

isn't there a 'nicer' option? Tomcat has to know the username anyway
throughout the application, so isn't it possible to retrieve it directly?

Thanks,
Michel

On Sun, 18 Nov 2001, Jens [ISO-8859-2] Kühnberger wrote:

> Just save the username in the session, then you can get the username on 
> a jsp page the following way:
> <%=  pageContext.getSession().getAttribute("username") %>
> 
> Jens
> 
> [EMAIL PROTECTED] wrote:
> 
> >Hi all,
> >
> >couldn't find this one in the archives:
> >
> >how do I get the username of the user that is logged in, from within a
> >JSP-file?
> >
> >Thanks,
> >Michel
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to