title: How to use ResultSetMetaData in Spring-Hibernate Integration?
body: <p>In my JSP page I am displaying the employee detail in the DB and giving the table column name in the form of hard coded.now I need to know how to get the table column name dynamically ?</p>
  
  <p>I aware of ResultSetMetaData to use it only in JSP. But I don't know how to get the column name when using the Spring-Hibernate Integration in JSP.</p>
  
  <p>Please any one help to solve this?</p>
  
  <p>My JSP page will be ,</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;%@ include file="include.jsp" %&gt;
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form:form action="displayuser.html"  commandName="displayuser"&gt;  
  
  
  &lt;table width="100%" align="center"&gt;
  
   &lt;tr style="background-color:#6B8E23  ;"&gt;
    &lt;td align="center"&gt;Employee Id&lt;/td&gt;
    &lt;td align="center"&gt;Employee Name&lt;/td&gt;
    &lt;td align="center"&gt;Employee Password&lt;/td&gt;
      &lt;td align="center"&gt;Gender&lt;/td&gt;
    &lt;td align="center"&gt;Designation&lt;/td&gt;
   &lt;/tr&gt;
  
   &lt;core:forEach items="${DisplayuserDetail}" var="userObj"&gt;
      &lt;tr style="background-color:#9ACD32 ;"&gt;
         &lt;td align="center"&gt;&lt;core:out value="${userObj.empId}"/&gt;&lt;/td&gt;
         &lt;td align="center"&gt;&lt;core:out value="${userObj.empName}"/&gt;&lt;/td&gt;
         &lt;td align="center"&gt;&lt;core:out value="${userObj.empPassword}"/&gt;&lt;/td&gt;
         &lt;td align="center"&gt;&lt;core:out value="${userObj.gender}"/&gt;&lt;/td&gt;
         &lt;td align="center"&gt;&lt;core:out value="${userObj.designation}"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
   &lt;/core:forEach&gt;
  
  &lt;/table&gt;
  
  &lt;/form:form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thanks in advance ... and your help will be appreciated ...</p>