cocoon-users mailing list archives

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

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:

      private static Counter myCounter = new Counter();

      public static int test() {
        return myCounter.Value();

Now it all works fine :)


Peter Verhage       <> BV - information technology -  0118 41 50 54

View raw message