my dog learned polymorphism*
The moose likes Struts and the fly likes problem while downloading file in 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 » Frameworks » Struts
Bookmark "problem while downloading file in struts" Watch "problem while downloading file in struts" New topic
Author

problem while downloading file in struts

ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

I am facing problem while downloading file.

I am using java 6, tomcat 5.5, Struts 1.3.

I save file in "WEB-INF/activity_files/activity1" location. All file types get saved.

Here I am stating the problem and then the code I am using to download:

Problem: When I click on download link, I get the file download window with some weird file name with right file type icon on it and when I save..., some raw type file is saved.
The file saved is of correct size but the name is not the same and the file is not associated with any file type.

This is first time I am implementing file download.... I need help to diagnose and find solution. I appreciate any help.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem while downloading file in struts
 
Similar Threads
Upload multiple files with separate submit buttons
problem in file downloading in struts 2.0
Problem with Form File
File download in struts2
download link in jsp ?