6 Replies Latest reply on Aug 26, 2008 12:18 PM by ajanz

    static variable in actionhandler


      i got a simple actionhandler with a static int var. this should be a counter, so every time the actionhandler is called the counter should be incremented.

      but it remains zero. is the class completely unloaded after calling?

      code is

      public class MyHandler implements ActionHandler {
       static int counter=0;
       public void execute(ExecutionContext arg0) throws Exception {
       System.out.println("Counter:" + counter);