Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can use HttpSessionListener for this purpose.
 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if this helps.

http://code.google.com/p/google-guice/wiki/Struts2Integration
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Hareesh: Nope, that isn't really related at all.

HttpSessionListener is part of JEE, not Struts. Perhaps searching the web for HttpSessionListener would help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic