I'm not quite certain if I understand the requirement for this assignment. Should I only have a 'bare bones' listvideos.jsp or should I try to read the ArrayList (which will contain VideoData objects) and display the contents?
Or do I just display the empty table and provide a button to 'add' a video?
Everything is not in 15 lines of jsp. You have the VideoServlet (which you write)and the addvideo.jsp, the index.html, and the PathFinder class (which are provided) to go with the web app.
You start by displaying an empty table. Using a link, go to addvideo.jsp to add a video. The logic is in the VideoServlet. The JSPs are only for displaying the results. You should have no logic in your JSPs, no if/elses or loops or stuff like that. Keep it simple. [ October 19, 2005: 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: Oct 10, 2005
That was my problem, I tried to put the logic into the JSP, not the servlet. Duh. I got it working, neat-o.
I'll come back to this after I get through all the other Assignments in the proper fashion.