?
Solved

Download ??

Posted on 2001-06-06
4
Medium Priority
?
195 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 300 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

718 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