I'm afraid that is not quite possible.  esql:get-string/@column must be a
manifest column name or number.

The ESQL logicsheet assumes that you know what the data in your table means.
However, there is one tag which allows to output the metadata of a query.
<esql:get-columns> writes for each result row the column names and values
as <column-name>column-value</column-name>.

So you could use

  <esql:row-results>
    <result-row>
      <esql:get-columns/>
    </result-row>
  </esql:row-results>

and transform that with a stylesheet following in the pipeline after the XSP:

  <xsl:template match="result-row">
    <tr>
      <xsl:for-each select="*">
        <td><xsl:value-of select="."/></td>
      </xsl:for-each>
    </tr>
  </xsl:template>

HTH, ALfred.

-----Original Message-----
From: Philippe LAPLANCHE [mailto:[EMAIL PROTECTED]
Sent: Samstag, 17. Dezember 2005 18:25
To: users@cocoon.apache.org
Subject: java variables as parameters of logicsheet templates calls


Hello,

I'm a beginner in xsp and I don't know how to pass a java variable as a
parameter of a logicsheet template call. To be more clear, consider this
simple example :
 
<esql:row-results>
        <tr>
                <xsp:logic>
for (int i=1;i&lt;=nbCol;i++) {
                </xsp:logic>
                <td><esql:get-string column="i"/></td>
                <xsp:logic>
                }
                </xsp:logic>
        </tr>
</esql:row-results>

In this example, I'd like i to take the value of the int as it is
defined inside <xsp:logic>

So I tried somthing like that : 

<esql:get-string>
        <xsp:parameter
name="column"><xsp:expr>i</xsp:expr></xsp:parameter>
</esql:get-string>

But Cocoon answered me : 
Parameter 'column' missing in dynamic tag <esql:get-string> 

How can I do that ?

Philippe




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

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