<esql:get-columns> solves my problem. I was unaware that <esql:get-columns> gets the column name and element and column value as element's value. That's exactly what I was trying to achive with my logic

Sushil




>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: esql question
>Date: Wed, 18 Sep 2002 16:23:46 -0400
>


Join the world’s largest e-mail service with MSN Hotmail. Click Here
--- Begin Message ---

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&lt;=<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. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --- End Message ---
---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to