if(source == null)
// use ivRequest instead
String source2 = (String)ivRequest.getAttribute("downloadFile");
source2 = Utils.decodeHtmlEntities(source2);
byteArray = source2.getBytes();
byteArray = source.getBytes();
ServletOutputStream out = response.getOutputStream();
I'm able to download the file in all the browsers, But while using IPAD the content of the file replaces the existing window (Parent Window) without asking for Save or Open
Please let me know is there any special content type or anythinmg else i have to chanage..
THe problem i faced only with IPAD
Bear Bibeault wrote:As the iPad (not IPAD) has no user-accessible file system, what else would you expect it to do?
Thanks For Correcting Me.. In iPad i'm just trying to download a .csv file for a button action. But the csv file just replaaces the parent window. How can i force it to display a save or open promt before downloading it... (Or please tell me whether we can do it or not) or atleast i need it to opened in a new browser window
I don't know, I don't own an iPhone, iPod or iPad (or any other device that starts with i). All I know is that some mobile devices (in which category I place iPads) have some limitations as far as multiple windows are concerned.
That has nothing to do with the iPad, but with the mobile browser being used. You can try sending the request to a new window or tab via target="_blank" on a link, but the browser will do what it will with that.
subject: Content-Disposition is replaces the parent window in IPAD