title: Remove alert from Page Load JSP
body: <p>I have a Jsp Page and The Alert Box is Loading every time the Page is Opened. I need this alert to display only if certain condition is met. Here Is My JSP. This is loading an empty alert every time the Page Loads.</p>
  
  <pre><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;LINK REL="StyleSheet" HREF="css/style.css"&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
          &lt;title&gt;&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form class ="menuOption" action ="MenuServlet" method ="GET"&gt;
             &lt;table border="0" class ="menuOption"&gt;
                 &lt;tbody&gt;
                     &lt;tr&gt;
                         &lt;td&gt;Enter Menu Option&lt;input type="text" name="menuoption" value="" /&gt;&lt;input  type="submit" value="GO" name="gomenu" /&gt;&lt;/td&gt;
                     &lt;/tr&gt;
                     &lt;tr&gt;
                         &lt;c: if test="${not empty nulloption}"&gt;
                          &lt;script&gt;alert("${nulloption}");&lt;/script&gt;
                      &lt;/c:if&gt;
                       &lt;c:if test="${not empty invalidMenu}"&gt;
                          &lt;script&gt;alert("${invalidMenu}");&lt;/script&gt;
                      &lt;/c:if&gt;
                         &lt;td&gt;&lt;/td&gt;
  
                         &lt;td&gt;&lt;/td&gt;
                         &lt;td&gt;&lt;/td&gt;
                     &lt;/tr&gt;
                 &lt;/tbody&gt;
             &lt;/table&gt;
  
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>