Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP 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 February 28th, 2008, 06:08 AM
Registered User
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Download file -JSP

Hi all,
         I am having a problem in getting the open/save dialog box..

I am doing an application which allows the user to download the file which is generated (and stored in the server)..

I am getting the open/save dialog box.. but I am getting the source of JSP file inside the file which is downloaded (instead of its original content)..

The code which I used :

Response.reset
response.setContentType( "application/download" );
response.setHeader( "Content-Disposition", "attachment; filename=c:\\file.txt");

(I already searched many forums .. still my problem was not solved .. thats the reason i am posting it here again )
regards
(gagsy)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Download - file from Database [Blob field] -JSP lapog Pro JSP 10 January 20th, 2011 05:19 PM
JSP code download? Raj_mhetre JSP Basics 1 January 9th, 2006 11:40 AM
Smaller download/single download file available jminatel BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 21st, 2005 11:10 AM
download code for Beginning JSP 2.0 kp_kurian JSP Basics 5 August 5th, 2004 10:31 PM
Question2:How to download information from JSP? Edward King Pro JSP 0 December 19th, 2003 04:24 AM





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