title: Dialog box in Spring MVC controller
body: <p>Is there a way to display a (preferably modal) dialog box in an servlet controller ?  If it isn't modal that is something I can deal with (!?) as long as it initially appears above the browser.  </p>
  
  <p>Essentially I have a form with a table and 2 buttons on it.  One button takes the user to a different place in the workflow and is irrelevant to this question (just to explain why the other one doesn't 'go anywhere').</p>
  
  <p>The other button currently goes back to an MVC controller, calls some code to export the table to excel and then reloads the web page.  This is all working okay except the way I am calling the dialog box is calling it underneath the browser.  I suspect this is because I am sending null as the frame but I'm not sure what to put in its place ?</p>
  
  <pre><code>JOptionPane.showMessageDialog(null, "Export Completed.", "Excel Export",     JOptionPane.INFORMATION_MESSAGE);
  </code></pre>
  
  <p>Many thanks.</p>