title: Displaying server time on jsp page
body: <p>I am displaying <code>server time</code> on a <code>jsp</code> page, and in order to display correct time, I have to call that <code>jsp</code> page to refresh the displayed time which leads to many <code>requests</code> to the <code>server</code>.</p>
  
  <p>Can anyone suggest any improvement on the way I'm displaying server time on <code>jsp</code> page without sending <code>request</code> frequently? </p>
  
  <pre><code>function displayserver(){
      $.post("DisplayServerTime.jsp","",function(data,status, req){
           $("#DisplayTimeSection").text(req.responseText.trim());
      });
  }
  
  $(function(){
  setInterval(
  function(){
      displayserver();
  }
  , 30000);
  });
  </code></pre>