This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JSP and the fly likes downloading text file in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

downloading text file in jsp

subodh varshney

Joined: Aug 01, 2005
Posts: 11
PrintWriter out1 = response.getWriter();
response.addDateHeader("Expires", 1);

I m using above code it is working, but when i download file it includes some extra lines(whitespaces) in the haeder of the file
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Please do not use browser's back button to edit a message. You're going to repost the complete message again. Use the message's edit button.
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2753

Subodh, please do not post the same question multiple times.It only wastes the useful time of other ranchers and reduces the number of responses you get. Read this for more information.

I am closing this one for you.

|Asking Good Questions|
I agree. Here's the link:
subject: downloading text file in jsp