cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henning von Bargen <H.vonBar...@Triestram-Partner.de>
Subject AW: LOGIC IN ESQL
Date Tue, 14 Nov 2000 10:48:14 GMT
I don't know if this is causing the error, but shouldn't it read
   if( i==2 || i==3 || i==4 || i==11 ) 
?
Henning

> -----Urspr√ľngliche Nachricht-----
> Von:	Marco Spinetti [SMTP:m.spinetti@pisa.iol.it]
> Gesendet am:	Dienstag, 14. November 2000 11:39
> An:	cocoon-users@xml.apache.org
> Betreff:	LOGIC IN ESQL
> 
> 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 <mailto:m.spinetti@pisa.iol.it>
>  

Mime
View raw message