posted 16 years ago
I am populating the data into the excel format.
Here is the code
Enumeration en = ht.elements();
int colCnt = ht.size();
int hdrCnt;
for(hdrCnt =1; hdrCnt<=colCnt; hdrCnt++)
{
if(hdrCnt>1){
out.print("\t");
}
out.print(ht.get(hdrCnt));
}
I can get only col numbers in the hdrCnt.But I want to get the colnames from the databases. If I say out.print(ht.get(hdrcnt)), I am getting the null not the names.
Can any one please tell me, how can I get the colnames here
Thanks