File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

download file [using Action class]

 
Bhavin Sanghani
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic