Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 25th, 2005, 02:11 AM
Registered User
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting Content Name

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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Active Content in Browser setting taraprasad Pro JSP 0 February 1st, 2008 05:41 AM
Choosing content depending on content of other ele dsekar_nat XSLT 1 February 27th, 2006 05:58 AM
Setting the response Content Vudathaneni Servlets 1 September 22nd, 2005 12:04 PM
setting content type of asp generated xml whyulil Classic ASP XML 0 July 15th, 2005 04:50 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.