aspose file tools*
The moose likes Struts and the fly likes How to Download XML file from database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to Download XML file from database?" Watch "How to Download XML file from database?" New topic
Author

How to Download XML file from database?

vikrantjain jain
Greenhorn

Joined: Jun 13, 2010
Posts: 12
Hi ,

I am giving one link in my jsp page and when anyone click on that link then XML file from database get downloaded which is stored as BLOB in one column of database.

Can any one help me out ,that how can I do this,what I need to write in my JSP and Action class to perform this action.?


Any help will be greatly appreciated.

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Chances are you want a typical file download servlet (or Struts action).
vikrantjain jain
Greenhorn

Joined: Jun 13, 2010
Posts: 12
I need Struts Action
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The technique is the same, just return null as the ActionForward. You could also use a JSP, but I don't see the need.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Download XML file from database?
 
Similar Threads
Delay while I type characters in the text box
Action class returning a xml file
display html in jsp using struts action
sending xml file from server to client dynamically.
File linking