JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Marilyn de Queiroz:
doGet is called on the servlet when you click on the link from index.html
Okay, so doGet() is being called, but there's a problem.
Let's see what could be causing a NullPointerException in your Default class. You haven't done a post, so you can skip the if block and go straight to the else block. What do you see in there that might be causing a NullPointerException?
Okay, it's not videoList. I wanted to print it in the servlet, but that wasn't working. The message was printing in the dos window, and videoList is not null. The only other things I can think of are listvideo.jsp not being a servlet yet, or the request in doGet is null. But I'm still confused.
To verify, I would pull that out and check
<pre>if ( theObject == null )
{
System.out.println( theObject is null );
}</pre>
QUOTE]
[ April 17, 2006: Message edited by: Carol Murphy ]
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Marilyn de Queiroz:
Are you going fromJSPToServlet or from ServletToJsp?
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Don't get me started about those stupid light bulbs. |