struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Mistroni" <>
Subject RE: Struts 1.3, chain & command configuration / few thoughts..
Date Wed, 04 May 2005 11:00:02 GMT
Hello joe,
>So really, all you should need to do is write a custom subclass of 
>ComposableRequestProcessor which gets its base CatalogFactory from 
>Spring during the init method.   Then, you'd have to adapt the 
>default chain-config.xml into Spring's bean-factory XML syntax so as 
>to create a CatalogFactory and register the "struts" catalog all in 

That's true... but spring & appContext are initialized only after
The spring plugIn has been initialized, and I was wondering, are 
plugIn initialized AFTER ComposableRequestProcessor? 
Because, if it is so, then I am out of business :-)



At 10:48 AM +0100 5/4/05, Marco Mistroni wrote:
>Hello all,
>	I am currently using Struts 1.3dev in my application, and I have
>recently bothered the list to find a way to configure commands via
>Now, just yesterday, I came across an article
>on how The new RequestProcessor is used in Struts 1.3...
>Struts 1.3 uses a chain-config.xml and custom chan configs that allows
>To 'override' or change the behaviour of request processor.
>Following that article I have implemented my custom command for
>pre-processing in RequestProcessor (as showed in article).
>Question is: what if I want to use some of my spring beans in one of
>'request processor' commands?
>Currently, in my app, I am using commands for doing various logic, and
>Commands are configured via Spring by using a Spring plugin..
>But I am not sure I can do same with RequestProcessor commands, since
>the chain-config.xml file is read at initialization time, when I
>the Spring plugin has not been initialized yet... so the bean won't be
>If I remember correct, there's a way in Spring to say that a 'bean'
>be initialized only after  'beanx' has been initialized (I guess is a
>'depend' attribute ein applicationContext.xml)..
>But will this work for RequestProcessor commands?
>Hope I was clear enough to explain my problem...
>Thanx in advance and regars
>	marco
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Joe Germuska       
"Narrow minds are weapons made for mass destruction"  -The Ex

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message