wood burning stoves 2.0*
The moose likes Struts and the fly likes [Ask] How to count the current session in Struts2?.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "[Ask] How to count the current session in Struts2?.." Watch "[Ask] How to count the current session in Struts2?.." New topic
Author

[Ask] How to count the current session in Struts2?..

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi friends..

Sorry maybe this question is probably common...
I want to display total current user with Struts2..
how to count the sessions it?..

Thank's in advance..


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
I think you can use HttpSessionListener for this purpose.
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

alright thank's for your reply..

How to configure it?..
do i have to implement HttpSessionListener in my Action class?..
or.. what should i have to do?..

Thank's
Hareesh Ram Chanchali
Ranch Hand

Joined: Jan 31, 2005
Posts: 110
Not sure if this helps.

http://code.google.com/p/google-guice/wiki/Struts2Integration


Hareesh Ram Chanchali
SCJP 5.0, IBM Certified Solution Designer
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

@Hareesh: Nope, that isn't really related at all.

HttpSessionListener is part of JEE, not Struts. Perhaps searching the web for HttpSessionListener would help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Ask] How to count the current session in Struts2?..
 
Similar Threads
struts2
struts2 + Json and JQuery.
Struts2
struts2
STRUTS2