I have the following code that runs when the user clicks a button in my Java 2 applet:
I am trying to get the servlet to run in the same window each time the user clicks the button. However, each time the button is clicked, the applet opens a new window. Does anybody know how to get the document to reuse the window that was opened the first time the button was clicked?
Thanks.
Code:
AppletContext context=getAppletContext();
URL url=new URL("http",hostname,-1,"/path-to/Some.Servlet");
context.showDocument(url,"_summarywindow");
I am trying to get the servlet to run in the same window each time the user clicks the button. However, each time the button is clicked, the applet opens a new window. Does anybody know how to get the document to reuse the window that was opened the first time the button was clicked?
Thanks.