On 04.Jun.2002 -- 01:05 PM, Matthew Hailstone wrote:
> I'm trying to get the column names of a particular query, but with no
> luck so far. Here is a portion of my XSP source:
>  
>    <esql:connection>
>      <esql:pool>wcart22</esql:pool>
>      <esql:execute-query>
>        <esql:query>select * from classes</esql:query>
>        
>        <esql:results>
>          <xsp:logic>
             for(int i=0; i &lt; <esql:get-column-count/>; i++)
>            {
>               
><field><xsp:expr><esql:get-metadata/>.getColumnName(i)</xsp:expr></field>

<!-- the above could use <esql:get-column-name/> if it were placed in row-results -->

>            }
>          </xsp:logic>
>          <esql:row-results>
>            <para>
>            <esql:get-columns/>
>            </para>
>          </esql:row-results>
>        </esql:results>
>      </esql:execute-query>
>    </esql:connection>
> 
> The above produces nothing.

For me it translates to the correct java code. Please have a look at
the generated java source and check the logs.

        Chris.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to