title: Populate popup after submitting the page in jsp
body: <p>How to get popup window with desired buttons 'Yes' and 'No'?</p>
  
  <p>My case is, when I click the submit (OK) button, the page will be submitted, after submitting the page I want to display the popup screen with desired button, in those desired buttons I should be able to navigate to different screens.</p>
  
  <p>My Submit (OK) button code is</p>
  
  <pre><code>&lt;html:submit property="ok" value="Ok" styleClass="blue-button"
                      onclick="setPageName('/actionHere.do')"&gt;
                  &lt;/html:submit&gt;&lt;/td&gt;
  
  &lt;script type="text/javascript"&gt;
  function setPageName(link) {
  var path;
  src="&lt;%=request.getContextPath()%&gt;"
  path = src.concat(link);
  document.forms[0].action = path;
  document.forms[0].submit();
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>After hitting this ok button, action class will be called page will be submitted, after the action class I want to diplay the popup screen with desired buttons. </p>
  
  <p>I want to handle this in either <code>jsp</code> or <code>javascript</code>.</p>