• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Session Question.....  RSS feed

 
sam patel
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to create a Folder for each session that is created...Cause I will be creating and displaying Images depending on different session...
Can someone please point me in the Right Direction,....
Thanks in advance....
 
Alain Boucher
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Weird.... put just use a HttpSessionListener that create the folder when session is created. You just have to creaet a class that implement HttpSessionListener, override the 2 methods (sessionCreated() and sessionDestroy() i think...) In the sessionCreated, create your folder. in the web.xml add your listener class and restard your webapp server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!