Hello,

I'm working on a site where I need the ability to always execute a certain
Action before the existing action handling kicks in (if it does at all). 
The purpose is to give the appearance of a static looking site while the
pages are all generated dynamically from a database.  This default action
would analyze the URL and lookup the page info from the database or hand
off to a more specialized action in some cases.  So I'd map my own suffix
in web.xml to also execute ServletDispatcher.

It looks like I could copy DefaultActionFactory adding my own
PageLookupFactory that looked for the suffix I'm using (similar to
JspActionFactoryProxy or ScriptFactoryProxy).  However, I'd like my
factory to run before JavaActionFactory because it will almost always fail
because most of the actions would be pages.  But since there's no
JavaActionFactoryProxy, it looks like I'll have to modify
JavaActionFactory to extend ActionFactoryProxy instead.

The other option I suppose, is to create a new servlet based on
ServletDispatcher cloning most of the service method.  About the only
change is it would invoke my default action instead of what's passed in
the URL.  Don't like all the code duplication with this method though.

Thoughts?

Thanks,
-Bill

_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to