Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 28th, 2008, 06:08 AM
Registered User
Join Date: Feb 2008
Location: , , .
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.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 )
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:31 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.