title: How to Add Java Method Timer for Redirect in ZK
body: <p>Hello fellow developer,i've getting problem to set the Timer method on ZK,default the method in my .zul page is:</p>
  
  <pre><code>&lt;timer id="timer" delay="1000" repeats="false"
  onTimer="response.sendRedirect('./Login.zul')" /&gt;
  </code></pre>
  
  <p>but the code is error(i think beacuse ('./Login.zul'),if i try (\"./Login.zul\"),still show error),i try to build in my controller page like this:</p>
  
  <pre><code>     private Timer timer=new Timer( 1000 );
  
      public OTPController() {
  
          timer.setRepeats( true );
          timer.setAttribute( "onTimer","response.sendRedirect(\"./Login.zul\")", Timer.COMPONENT_SCOPE );
  
          timer.start();
  }
  </code></pre>
  
  <p>but nothing happen..:(</p>
  
  <p>anybody can help me?</p>
  
  <p>maybe i have to create java script method or something like that?
  iam still trying to find the answer,ive read the ZK Docs but nothing can help..</p>
  
  <p>Thanks for your attention and sorry for my bad english :D</p>