I believe other people also have faced this problem, but I couldn't find proper solution from the archive. Here's my problem:
In the xsp code below, I want to dynamically pass column number (is 2 in the code below) and print each column name. I have count and tried passing it to attribute column. I tried <xsp:expr> and also tried making <esql:get-column name> as xsp:element and column as xsp:attribute. Neither of them work. Is there no way to get all columns or X number of columns without hardcoding the column number or the column name in esql ? Same with <esql:get-string column="2"/>. How do I dynamically pass value to the attribute column ? Any esql gurus out there ??
<xsp:logic>
for (int count=1; count<=<esql:get-column-count/>; count++) {
<column_name> <esql:get-column-name column="2"/></column_name>
}
</xsp:logic>
Sushil
Send and receive Hotmail on your mobile device: Click Here
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting.