Solved

Download ??

Posted on 2001-06-06
4
173 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bigHeights  challenge 13 56
strDist challenge 35 84
Eclipse Neon and jdk 1.8.0 11 72
Java asynchronous logging 4 35
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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now