cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Verhage <pe...@ibuildings.nl>
Subject Re: Class creation
Date Thu, 28 Sep 2000 13:20:57 GMT
Hi,

I've solved the problem.
I looked at the compiled page in the repository directory. And I
discoverd that the functions are placed within an other class. So that
will never work because creating a variable in a class is one thing. But
you can't directly call a function on that class without doing that in a
function of the class itself. So I made a function around it:

    <xsp:logic>
      private static Counter myCounter = new Counter();

      public static int test() {
        myCounter.Raise();
        return myCounter.Value();
      } 
    </xsp:logic>

Now it all works fine :)

Peter

-- 
Peter Verhage       <peter@ibuildings.nl>
ibuildings.nl BV - information technology
http://www.ibuildings.nl -  0118 41 50 54

Mime
View raw message