[Webwork-user] trying to understand factory chaining
Brought to you by:
baldree,
rickardoberg
From: Marc L. <dev...@lo...> - 2002-07-06 13:21:49
|
Hi, i am having quite a hard time to fully understand your ActionFactory chaining. Is it correct that when using defaultActionFactory, getActionImpl() of all defined Factories (about 11 there) will be called? Is it also correct that some factories do some pre-processing like settings paramters from request into the bean while others will only do their work when your Action Bean is an instance of some Action (like PrepareAction) ? I am wondering how my MyAction which extends ActionSupport can also implement prepare() of the PrepareAction Interface. Since instanceof is used, implementing the interface wont work here. Another miracle is for example XMLActionFactoryProxy, which acts upon a certain suffix (here .xml), am i right that when using this feature, you must also redefine your web.xml, cause .xml requests wont handled by webwork default web.xml. The code looks very clever, perhaps i am just too dumb to fully understand it in the first hour. Thx for input. --- Marc Logemann (see him @ www.logemann.info) |