Here's a thought, and I couldn't find any evidence in the list archives of this being discussed before. There are many good reasons to extend RequestProcessor, but of course it's not possible to use more than one RequestProcessor subclass at a time (unless they extend each other), and there seems to be an issue with multiple conflicting RequestProcessor subclasses-- I can think of several open source struts add-ons that do this, plus of course TilesRequestProcessor, and I can't use them all together. Plus, I have extended RequestProcessor myself (to provide custom access control).

But what if there were a plug-in interface for RequestProcessor to provide extra functionality, instead of overriding methods? Then you could combine an arbitrary number of per-request customizations. Maybe this is complicated because the RequestProcessor interface is quite large, and I'm sure there will always still be *some* reason to extend RequestProcessor, but I'm sure most people just override a few common methods like processPreprocess(), processRoles(), etc., so at least this might take care of 90% of the cases.

Any thoughts on this? Perhaps this should be posted to the struts developer list instead... but I thought I'd see if it gets shot down here first :)


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



Reply via email to