cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Spinetti" <m.spine...@pisa.iol.it>
Subject LOGIC IN ESQL
Date Tue, 14 Nov 2000 10:38:44 GMT
Hi all,
I have read that I can insert my logic inside the Tag Esql. I have tried to do that (I must
do some elaborations on the results) but I obtain some mistakes as if the logic was not elaborated.
 In my file I write:

<esql:results>
    <header>Example</header> 
    <esql:row-results>
    <xsp:logic>
    for(int i=1; i&lt;=12; i++) {
     <ResultElement>
     <Name><xsp:expr>nomi[i-1]</xsp:expr></Name>
     <Value>
     if( i==2 | i==3 |i==4 | i==11 ) {
      <esql:get-int column="i"/>
     }
     else { 
      <esql:get-string column="i"/>
     }
     </Value>
     </ResultElement>
    }
    </xsp:logic>
    </esql:row-results>
   </esql:results> 

Where is the error?
Can you help me?
Thanks many 
Marco
m.spinetti@pisa.iol.it


Mime
View raw message