One of the things I see asked very frequently on the Users mailing list is
how to return PDF's and other BLOB fields from a database (or from a file
system). People either have trouble figuring out how to do it and require
help, or have trouble making it work.
Please find attached source for a
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
I don't really like your approach and don't want to see such an Action
added to a Framework like Struts. Here's a few comments why:
A big part of the reason I posted this was to see if this
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
You know Martin, I was all set to reply with two or three points that I
THOUGHT were valid against this, but as I started writing them up (I think
three or four messages began and aborted!) I decided what you've done I
actually DO like! :)
The one comment that remains is this... The approach I
Since the thread I originally started with regard to a BLOB download
Action kind of veered off into a different territory, I was hoping
starting a new thread could the discussion get back on topic. I have a
bit of a vested interest in this now because I started the discussion and
I hate leaving
Did you really mean to say don't base the ACTION on a concrete subclass?
If so, I'm a bit confused (which is my usual state of being, so all is
well)...
The way I am looking at it, the only thing I'm extending is the
ActionConfig, which is a class. The Action Martin wrote of course extends
The way I envision it is that the app will have a file system-based
download by default, and will also have in place the capability to
download from a user-defined database if the user wants to, but the app
would in no way, by default, require a database. Probably something as
simple as
Here is the URL for the sample app I put together to demonstrate the usage
of Martin's DownloadAction, as well as the use of custom Action Mappings:
http://www.omnytex.com/downloadapp.zip
Please send me whatever comments you all have so I can polish it and get
it ready for distribution.
I went
Hi folks... I'm working on an update of my Struts Web Services project,
and I can't seem to work out how to do something...
What I want to do is have a way to redirect to a given JSP when ActionForm
validation errors occur that will OVERRIDE whatever might be configured in
the action mapping. In