I have to display dialog box from servlet but without opening new window.
Below is code
PrintWriter printWriter =response.getWriter();
String s ="<HTML><HEAD><TITLE>JavaScript Example</TITLE>"+
"<SCRIPT LANGUAGE=JavaScript>"+
"alert('File Uploaded');"+
"</SCRIPT>"+
"</HEAD>"+
"</HTML>";
printWriter.print(s);
This code open dialog in new window but I want dialog in current window.