hi,
I have a screeen from which users can download files. User
selects file names and clicks on submit button. Request goes to controller
which, after all session / security validation calls appropriate handler. This
handler in turn gets file names from request, finds for files and using
java.uti.zip creates byte [] of data and returns the same to controller.
Controller puts this data in session as well as appropriate jsp page name to be
displayed in session. It then forwards request to standard frame.
The top part of frame displays the jsp page as stored in session (lower part is
for exception display list). This upper jsp then gets byte[] from session and
writes data to outputstream (got from response). Following is the sample code
in jsp:
OutputStream outA = response.getOutputStream();
response.setContentType("application/zip");
response.setHeader("Content-disposition","attachment;
filename=OperatorFiles.zip" );
outA.write(data); // data is byte[] stored in session
outA.flush();
outA.close();
This works properly so that a popup comes from browser prompting to save
OperatorFiles.zip to disc. File gets saves properly and can get files after
extracting the zip. However once zip file is saved on disc, the background page
in browser displays Action Cancelled page as shown below. I want to prevent
this and say display a blank or any other page, which is not happening.
(however, when dialog box for 'save file' pops up from browser,and I click on
'cancel' button a blank page gets displayed)
Action canceled
Internet Explorer was unable to link to the Web page you requested. The page
might be temporarily unavailable.
_____
Please try the following:
* Click the refresh.gif (82 bytes)Refresh button, or try again later.
* If you have visited this page previously and you want to view what has
been stored on your computer, click File, and then click Work Offline.
* For information about offline browsing with Internet Explorer, click the
Help menu, and then click Contents and Index.
Any help will be appreciated.
Jignesh
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html