wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes text file download using struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "text file download using struts" Watch "text file download using struts" New topic

text file download using struts

velMurugan vasu

Joined: May 21, 2012
Posts: 13

I want to download a text File using struts.The file gets downloaded successfully.But the file contain junk value at the end of the file.
How to download the file without that junk value.

source file content(sample.txt)
hi babby
hi babby
hi babby

downloaded file(33808.txt)
hi babby
hi babby
hi babby
null null null null null

The last line is a junk content i'm not able to attach my text file in coderanch.Thats why i typed null manually here.
Any help is appreciable.
tran van cuong

Joined: Aug 03, 2012
Posts: 1
there is my j2me source: http://holyeyed.99k.org/function/up/Midlet-48719.java
download & save file with HttpConnection and FileConnection. it can help you
I agree. Here's the link: http://aspose.com/file-tools
subject: text file download using struts
Similar Threads
Trying to download an excel through JSP
xlsx file name problem in internet explorer
Implementing download - XLS files - JSP scriptlet
displaying jsp filename to downloading file in internet explorer
Opening an xlsx Excel file