Dear All,
As per my project, I need to display all the column names of a table on JSP.
i.e i need to display fields on JSP dynamically.depends upon user credentials, user should get registration page& the fields on the page should come from database.
My table is like :
Id | First Name | Last Name |
-----|---------------|-----------------
1 | ram | chen |
2 | som | sun |
--------------------------------------
Now i have to get these field names(Id,First Name,Last Name) & should display these fieldson JSP
I am using hibernate3, I am using MySql databse----
How to get column names from database?
[Please note ,i dont want values in that columns,but only column names]
If any one knows please provide me the solution.
|