File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes File Download dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "File Download dialog " Watch "File Download dialog " New topic

File Download dialog

Naren Desai

Joined: May 12, 2005
Posts: 3
I have Download servlet which downloads the results of search function in text file.
There is no problem when I test download function in my local (WSAD)workspace. There are no errors or anything..The results are downloaded to a text file.
When this is deployed on a WebSphere AIX environment, for some reason the File Download dialog never pops up?

Are there any security related settings are which are preventing File Download dialog to open when this deployed to WebSphere

Servlet has the following headers set
resp.setContentType( "application/x-download" );
resp.setHeader( "Content-Disposition", "attachment; filename=" + downloadFileName );

In my Jsp the download button is inside a iframe.
input type="button" onklick="handleDownLoad(bean.getDownloadURL()"

Please help me out

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

"nah nah",

You have already been asked before to adjust you name to JavaRanch standards.

Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Forum Bartender

[Asking smart questions] [About Bear] [Books by Bear]
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

"nah nah",
please re-read the request to change your display name here and correct your diaply name.

David O'Meara.
Naren Desai

Joined: May 12, 2005
Posts: 3
display name edited!

Any suggestions for File Download dialog issue I have posted earlier???

Thanks in advance.

[ August 11, 2005: Message edited by: nah desai ]

[ August 11, 2005: Message edited by: nah desai ]
[ August 16, 2005: Message edited by: nah desai ]
I agree. Here's the link:
subject: File Download dialog
It's not a secret anymore!