Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to prevent multiple login with same name

 
ketu patel
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have created one application which is based on only sctiplet and jsp pages so now i'm trying to find out who logged in so how could i implement it help me with some example

thanking you
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ketu patel:
i have created one application which is based on only sctiplet and jsp pages so now i'm trying to find out who logged in so how could i implement it help me with some example

thanking you


This question was asked many times in this forum ..
Try with a HttpSessionListener, & keep track of login.
This works well for me .

Srini
 
ketu patel
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that's right but is HttpSessionListener is work from jsp or i have to create a servlet for that i'm looking for the jsp based solution mean a scriptlet if u have than can u able to give me some link ? if possible
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I'm sure you know since you have the Servlet and JSP specs bookmarked on your 'puter over there .... the listeners are configured against a particular servlet or JSP file(s) like filters are. You set it up and it's there. It will always get called when new Sessions are bound, etc.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic