Setting Content Name
Hi,
I am working on a Mobile application using java.
I have written a code which is used for download process on the mobile.
The content is getting downloaded properly on to the Mobile Hand Set.
But the problem is the File Name. The name of the file downloaded on the mobile is the name of the jsp i am using.
Suppose my code is in file called "Download.jsp", after successful download of the content it is showing Download.jsp as the file name.
So is there any way that the file name can be changed to the one we wish by setting any headers.
I have tried it by using the folowing but it is working IE not on Mobile Hand Set.
response.setHeader("Content-Disposition","attachment; filename=" + filename +";");
Can any one help me to solve this.
I have checked out the Content-Disposition header specs, it says that the support is there only for IE and Netscape.
Kindly help me solve it out.
Thanks,
Amit
|