• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to output data from database into table jsp?

 
Nick Nusak
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! I am trying to output data but get empty table. What am I doing wrong? Here is my code:
Class Item:

class ItemServlet:

item-list.jsp:
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you creating i new list for each DB row?

Some simple logging in the servlet can show you what's in your list at each juncture.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!