This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes download file [using Action class] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "download file [using Action class]" Watch "download file [using Action class]" New topic
Author

download file [using Action class]

Bhavin Sanghani
Ranch Hand

Joined: Dec 17, 2003
Posts: 67
Hi,

I've uploaded file in DB (Blob field)...and I want to download file using Struts framework...Code that works in Servlet same will run with Action class or its a wrong approach?

Using Struts, what are the approaches for file downloading from database.

-Bhavin Sanghani
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
You write the data to the output stream and return null as the forward. That indicates to the ActionServlet that you took care of the request already and no further forwarding is required.


James Carman, President<br />Carman Consulting, Inc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: download file [using Action class]
 
Similar Threads
Downloading file - Problem in struts?
How can I upload multiple files using html:file
How to Download a file
Download link
How to Download XML file from database?