You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nicki Møller <ni...@yahoo.dk> on 2000/07/11 16:47:51 UTC

Odd problems with Cocoon

Hi All, 

I seem to have run into some odd problems with Cocoon.
When I try use for-loops like this

----------
    <xsp:logic>
     for (int i=0; i lt; 7;i++)
	{
          j++;         
	}
    </xsp:logic>
----------

I get an error-msg. saying "Type expected".

I have encountered this problem once before when I
tried to use the java.util.Calender obj. and had to
make a workaround 

The question is am I making some basic errors and if
so what or does cocoon have problems with for-loops 

Any help is appreciated

-Nicki

______________________________________________________
Do You Yahoo!?
Få en gratis @yahoo.dk-adresse på http://mail.yahoo.dk

Re: Odd problems with Cocoon

Posted by Jari Aarniala <ja...@ioboxgroup.com>.
----- Original Message -----
From: Nicki Møller <ni...@yahoo.dk>
To: Cocoon Users <co...@xml.apache.org>
Sent: Tuesday, July 11, 2000 5:47 PM
Subject: Odd problems with Cocoon


:      for (int i=0; i lt; 7;i++)

You do have &lt; here, right? Just checking :)

    Jari



Re: Odd problems with Cocoon

Posted by Stefano Mazzocchi <st...@apache.org>.
Nicki Møller wrote:
> 
> Hi All,
> 
> I seem to have run into some odd problems with Cocoon.
> When I try use for-loops like this
> 
> ----------
>     <xsp:logic>
>      for (int i=0; i lt; 7;i++)

You mean:

      for (int i=0; i &lt; 7;i++)

right?

I suggest to use

 <xsp:logic><![CDATA[
  for (int i=0; i < 7; i++) {
    j++;
  }
 ]]></xsp:logic>

It's much more readable that way.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------