• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pushing data to table

 
Nagendra Shasthri
Ranch Hand
Posts: 35
Chrome Java MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all...

I have fetched data from DB and added it to a list...Return type is string so I assigned list to string( String a =list.toString())...While displaying I want this data to be displayed in a table....how to create a table and in which file we need to create?
 
Rudy Gireyev
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nagendra Shasthri wrote:Hi all...

I have fetched data from DB and added it to a list...

How many columns did you retrieve?
Nagendra Shasthri wrote:Return type is string so I assigned list to string( String a =list.toString())...

list.toString() returns the object id that JVM assigned to this list, the list being an object. It does not return the contents of the list. To get to the contents of the list you have to loop through its elements.
Nagendra Shasthri wrote:While displaying I want this data to be displayed in a table....

What kind of table? HTML table?
Nagendra Shasthri wrote:how to create a table and in which file we need to create?

Not really sure what you are asking here.

Rudy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!