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?
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 ]
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Joined: Mar 15, 2001
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.