title: how to display a pop up in servlet page
body: <p>I am trying to display a pop up window in servletpage.
  Onclick of submit button on jsp page it is calling servlet page where I am trying to print result on pop up window.</p>
  
  <p>I have used the bellow code which is not working.</p>
  
  <pre><code>out.println("&lt;html&gt;&lt;body onload=\"myFunction()\"&gt;&lt;script&gt;function myFunction() {alert("+splitVal[4]+");}&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;");
  </code></pre>