File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Downloading files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Downloading files" Watch "Downloading files" New topic
Author

Downloading files

Danish Shaukat
Ranch Hand

Joined: Nov 16, 1999
Posts: 340
Hi !
I have a servlet and here is what it does:
-Dynamically builds a J2ME application using Ant.
-Copies some files of the application to /webapps/dload/apps

Next these files have to be downloaded. I want that download should
start automatically. To achieve this functionality I am using
response.sendRedirect(URL)method.
But download does not start. I am geting the following error on browser:
"The web page cannot be displayed..."
However if I just type the URL, download starts. I get that Open/Save As dialog box.
I am trying to download .JAD file. Right now I am just using Internet
Explorer. But in reality a WML page will send request to this servlet and then .JAD file will be downloaded to the cell-phone.
I need some help with this. Thanks in advance.
Danish
[ February 27, 2004: Message edited by: Danish Shaukat ]
 
 
subject: Downloading files
 
Similar Threads
Getting from server to the phone
OTA provisioning
Download content via SMS
OTA MIDLet deployment - Back to basics
C++ vs J2ME