title: How To Terminate Thread When Jsp Page close that call it JSP?
body: <p>I am calling a thread in JSP page and that thread keeps on running. I want this thread to terminate when I close the JSP page. Wow would that be possible ?</p>
  
  <p>my code put it in body tag JSP:</p>
  
  <pre><code>&lt;%
  Thread Ping=new PingThread();
  Ping.Start();
  %&gt;
  </code></pre>
  
  <p>Thanks in Advance </p>