title: Reloading a Web page according to a condition
body: <p>I'm a beginner in web development and I'm making a project in JSP. According to tutorialspoint, JSP is only able to auto reload a web page based on predefined x number of seconds. I want to reload the web page everytime I receive a high priority SIP MESSAGE from the servlet context, shown in the code below: </p>
  
  <pre><code>&lt;%@ page import="java.io.*,java.util.*" %&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;title&gt;High priority alert has been received !!!&lt;/title&gt;
  &lt;/head&gt;
   &lt;body&gt;
    &lt;p&gt;
      &lt;%
         if (MESSAGEHighPrio == null) {
             out.println("No high priority alerts have been received yet.");
             String MESSAGELowPrio = (String)this.getServletContext().getAttribute("MESSAGEFromLowPrioSIPServlet");
  
         }
  
         else{
             // RELOAD THE PAGE HERE !!!!
             out.println("&lt;h1&gt;High priority alert has been received !!!&lt;/h1&gt;");
             out.println("Address: " + MESSAGEHighPrio + "\n");
         }
        %&gt;
  &lt;/p&gt;
  </code></pre>