> -Original Message-
> From: Jim Douglas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 2:38 PM
> To: [EMAIL PROTECTED]
> Subject: RE: getAttribute syntax
>
>
>
> This worked,
>
> String userName = ((LogonForm) form).getUser
ot; <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: getAttribute syntax
Date: Wed, 15 Dec 2004 12:48:50 -0700
> -Original Message-
> From: Jim Douglas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 12:30 PM
> To
> -Original Message-
> From: Jim Douglas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: getAttribute syntax
>
>
> Can anyone tell me the best way to access the currently
> loggoned on user
>
Can anyone tell me the best way to access the currently loggoned on user
when needed in an application.
Is this the best way to go about it?
HttpSession session = request.getSession()
String LogonName = session.getAttribute("userName");
Thanks,
Jim
---
4 matches
Mail list logo