Solved

Download ??

Posted on 2001-06-06
4
186 Views
Last Modified: 2010-03-31
I wrote a servlet which accepts a request from the html client. It then prepares a zip file at runtime and sends it back to browser. Now the browser it shows a Open it/Save to disk option (IE 5.5). I want to skip this screen programatically i.e. it should not give the option rather it should save the zip file on to the disk automatically. Can anyone please help me with this ?
0
Comment
Question by:team
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 92

Expert Comment

by:objects
ID: 6162528
No can do, if this was possible sites would be filling your disk with crap every time you visited them. On top of that it's a browser dependant thing, what the browser does with data delivered to it is out of your control.
(I am not implying your zip is crap, just explaining the reason it can't be done, ie. to protect the local machine).
0
 

Author Comment

by:team
ID: 6166408
Can it be done using jsp. Like the servlet passes on the data to jsp and jsp creates the file
0
 
LVL 92

Accepted Solution

by:
objects earned 100 total points
ID: 6166426
Nope, for the same resone stated earlier.
All the challenge would be taken out of writing viruses if what you wanted to do was possible :)
Sorry :-(

You could do it with a signed applet as this is considered 'trusted' code. But seems like a hassle just to avoid a dialog box.
0
 
LVL 92

Expert Comment

by:objects
ID: 6169716
Thanks for the points :)
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question