This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm confused over the details of session management for Servlets-5. Maybe I'm making things more complicated than they need to be? If I'm to rely on the built-in session management API, then it's my understanding that I need to associate some object, say a video list, as an attribute of the session object I can get from the request object. And I need to retrieve this associated object each time it gets used in a standard doXXX servlet method. Right? Or am I way off in the wrong direction? (If the above is correct, then the way Servlets-5 goes about sharing the video list is different from both how the instructor's solution shares the video list in Servlets 4a-b and the other common way to go about sharing the video list. Right?) Or should I just torture Marilyn by submitting what I have written up right now?
The video list is shared exactly the same way as it is in Servlets-4b
Making sure the user has a valid session is different.
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 25, 2001
I think I've got it all straight now. (Guess it depends on how we interpret "same" and "different"!) My first pass at this assignment produced some pretty ugly code. Was looking for a strategy check to help decide whether to clean up my existing version or to rethink my whole approach. Took a couple more passes and cleaned it up quite nicely, then submitted. Carol -- as far as not understanding me, don't worry. Some of my posts to the Cattle Drive forum rank pretty high on the cryptic scale. I was trying to ask a fairly detailed question without giving away too much. (But, hey -- you've passed this assignment already!)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com