On Mon, 28 Feb 2005 23:40:39 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > It is of course possible to turn of form validation on a per-mapping > basis... Is it possible to turn off auto-population?
In Struts 1.0 - 1.2, there's no way to do this other than by overriding RequestProcessor and dinking with the processPopulate() method. With the way 1.3 is evolving, it would be feasible to make the Command that normally does population do something different instead. > It's never come up for me before a few minutes ago... I'm doing a file > upload project, and when I upload the files I'd like an ActionForm to be > created but NOT populated with anything... I want to use it simply to > return some status information back to the view. I can think of about 5 > other ways to accomplish this, but simply turning off auto-population > would be the easiest. I can see where you're coming from, but I sure wonder how many people are going to be surprised by this behavior that is so different from the Struts norm. BTW, when upload gets integrated into Shale (I keep hearing Martin talk about some upgrades to Commons FileUpload that I'd sure like to see happen first :-), my thinking is that simple properties would still be populated normally, but properties representing uploaded files would get populated with an implementation of some adapter API that bridges the difference between files that got cached in memory, stored on disk, or whatever. That way, the only behavior that is different is that for the file upload field(s) -- everything else continues to work as it does in a non-file-upload scenario. > > I don't see a way to do it... am I missing something? Thanks! > > -- > Frank W. Zammetti Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]