title: update date dynamically on jsp page
body: <p>I use custom tag to get current date.</p>
  
  <pre><code>public int doStartTag() {
  
      log.info("try to init JSpWriter");
      JspWriter out = pageContext.getOut();
  
      log.info("try to get date");
      try {
          SimpleDateFormat printFormat = new SimpleDateFormat("HH:mm:ss");
          out.println(printFormat.format(new Date()));
      } catch (IOException e) {
          log.error(null, e);
      }
  
      return SKIP_BODY;
  
  }
  </code></pre>
  
  <p>And use it on page like this <code>&lt;span class="date"&gt;&lt;d:DateTag /&gt;&lt;/span&gt;</code>.</p>
  
  <p>But how to update it dynamically? Because it is static and it changes when I update page.</p>