When a user logs in you can put a User object in their session. User will implement the SessionBindingListener interface and add themselves to a list of users in the application scope.

See the servlet javadoc for details.

David






From: "VEDRE, RANAPRATAP REDDY" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Active users in a struts web application.
Date: Wed, 15 Jan 2003 12:00:57 -0500

Not a struts specific question, but i know where the experts are...

I am tring to show the users currently logged into a web application, so
that anybody who logs in can see who else is logged in.

This functionality is similar to a standard chat program.

i am using ServletContextListener and HttpSessionAttributeListener classes
in the server API.

Struts 1.1b2, so i can use Plugins if needed.

Any help/ideas about tracking users currently logged into a web application
are most welcome.



Thanks,
Rana.

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

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


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

Reply via email to