Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-06-2007, 07:10 PM
Member
 
Join Date: Dec 2007
Posts: 1
deepdba is on a distinguished road
File Save not showing FileSAVE dialog box , getting displayed in browser
We have to export some data from Database to CSV file.
Frontend :JSP

So we are using ServletOutputStream and writing the data to a file in the Servlet.

To enable To show file save dialog box i am also doing this..

response.setContentType("text/plain");
response.addHeader("Content-Disposition","attachment;filename=\"" + fileName + "\"");

IT is showing FileSave dialog box when the output is less say like 20-50 Lines in the file.

But if the output is like more than 50lines then it is getting displayed the browser directly.
The filesave option is not coming up.
Please help
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Save/Load Vector to/from file Java Tip java.lang 0 04-14-2008 09:37 PM
Example - File Dialog Java Tip Java Tips 0 03-01-2008 11:11 PM
Open "Save Page As" Dialog Box Anubha JavaServer Pages (JSP) and JSTL 0 12-12-2007 10:27 PM
save file to database katerinaaa New To Java 0 08-14-2007 01:15 PM
How can I make the file ALWAYS save as .txt by default paul AWT / Swing 1 08-07-2007 06:09 AM


All times are GMT +3. The time now is 10:47 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org