• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between old & new servlets

 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The old version of Servlets (before jsp) kept the ArrayList populated even if you stopped the server. When you started up the server again, all of the videos were still there. I've noticed that with the jsp version, every time the server is stopped, when it starts up again the ArrayList is empty. Why is that?
 
Marilyn de Queiroz
Sheriff
Posts: 9061
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you aren't confusing it with the jdbc assignments? I would be very surprised to learn that your app server kept something in its memory after it was stopped, and since the html was created in the servlet, I don't think that the browser could keep a cached copy of it.
[ May 08, 2006: Message edited by: Marilyn de Queiroz ]
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That must be it. I must be thinking of the JDBC assignments that used this same video concept. Would this be an example of data being stored only as long as a session stays alive, or is it the fact that the server was shut down? Now I have to experiment some more to see if the videos are still there after I close my browser but don't stop the server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic