File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 2851

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
It's not a secret anymore!