Action for file download

View: New views
1 Messages — Rating Filter:   Alert me  

Action for file download

by Marxer, Attila :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody,
 
I've been using Beehive for a couple of months now and I'm very happy
with
it. However, recently I've found myself facing a problem I couldn't get
resolved:
 
Is there a way to write a simple action to handle a file download? I've
tried to write
a simple action without any forwards that reads a file from disk, writes

its contennt to the HttpServletResponse and then simply returns "null".
However
Beehive displays the file content "inline" in my page. Is there a way to
force
a "Content-Disposition: attachement" on the response?
 
thanks in advance,
Attila