• Post Reply Bookmark Topic Watch Topic
  • New Topic

Fetch Database tables with columns from mssql  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

           I need a jsp code by which i can fetch all table in mssql database with there column names ?

i treid google but no luck

your help will be appreciated

Thanks
 
Ranch Hand
Posts: 416
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How want you to connect to database: JDBC, Entity or Hibernate?

Or you can write a REST service to get all data from a table.

If you want to use Entity you can generate a entity from a table using NetBeans or other editor.

Then you can write a bean and than a jsp page.

 
Author and ninkuma
Marshal
Posts: 66345
155
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In any case, you do not want to put Java code in the JSP. Fetch the information from the database with JDBC (or whatever) in Java classes. Then send the results to the JSP.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!