I'd been thinking about something in between. How about an Action that does all the drudge work, but leaves the details to the implementor? Something, perhaps, like this:

http://www.apache.org/~martinc/struts/DownloadAction.java

This provides easy solutions for downloading files from the file system, resources from a web app, or a completely custom solution, if you don't like either of those.

--
Martin Cooper


On Mon, 20 Sep 2004, Craig McClanahan wrote:

On Mon, 20 Sep 2004 09:57:00 +0200, Reinhard Nägele
<[EMAIL PROTECTED]> wrote:

Streaming files back to the reponse is really nothing special, and it's
not exactly a Struts-specific thing. A simple Booch utitlity class would
serve the purpose.

I agree with Reinhard's reasons that something this specific to particular data access mechanisms might not be appropriate as a part of the core framework. That being said, questions about downloading binary data come up often enough that something like this would make a dandy example application.


Reinhard


Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to