cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel Alfred" <>
Subject RE: java variables as parameters of logicsheet templates calls
Date Mon, 19 Dec 2005 08:49:55 GMT
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


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

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

HTH, ALfred.

-----Original Message-----
From: Philippe LAPLANCHE []
Sent: Samstag, 17. Dezember 2005 18:25
Subject: java variables as parameters of logicsheet templates calls


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 :
for (int i=1;i&lt;=nbCol;i++) {
		<td><esql:get-string column="i"/></td>

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 : 


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

How can I do that ?


To unsubscribe, e-mail:
For additional commands, e-mail:
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:
For additional commands, e-mail:

View raw message