• Post Reply Bookmark Topic Watch Topic
  • New Topic

Fetch Database tables with columns from mssql  RSS feed

 
Jason Berry
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
 
Dana Ucaed
Ranch Hand
Posts: 405
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.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66260
151
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!