This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
the problem i was mainly facing was that i was using a resultset and passing the values of my database in it. i was also using the .next() method but the mistake i was making was that i was terminating the while loop before it even starts iterating.
ie: i was writing while(rs.next());
instead of while(rs.next())