Meaningless Drivel is fun!*
The moose likes JSP and the fly likes Disable Save As in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Disable Save As in IE" Watch "Disable Save As in IE" New topic
Author

Disable Save As in IE

Dave Donohoe
Ranch Hand

Joined: May 16, 2000
Posts: 73
Hi there,
Does anyone know if its possible to get my JSP/Servlet to disable the Save As feature in Microsoft Internet Explorer - currently I am using IE5
Thanks in advance,
D
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
By the time the servlet or JSP generated code gets to the browser, it is just HTML (or nowadays, maybe XML). A browser scripting language is JavaScript and with it you can pop up a separate window with the toolbars that you need.
I don't see why you cannot generate Javascript code in the servlet that would open sucha a window.
waitMainWindow=window.open("","mainwait","status=no,toolbar=no,location=no,
menu=no,width=500,height=200,left=30,top=30,screenX=30,screenY=30");
var text = "";
text += "<HTML><HEAD><TITLE>PAGE TITLE</TITLE><BODY BGCOLOR=#000000>";
text += "PAGE BADOY HERE"
text += "</BODY></HEAD></HTML>";
waitMainWindow.document.write(text);
waitMainWindow.document.close();



Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disable Save As in IE