struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Mistroni" <mmistr...@waersystems.com>
Subject Struts 1.3, chain & command configuration / few thoughts..
Date Wed, 04 May 2005 09:48:55 GMT
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
Spring.
Now, just yesterday, I came across an article
(http://www.onjava.com/pub/a/onjava/2005/03/02/commonchains2.html)
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
user
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
those
'request processor' commands?

Currently, in my app, I am using commands for doing various logic, and
those
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 suppose
the Spring plugin has not been initialized yet... so the bean won't be
available..

If I remember correct, there's a way in Spring to say that a 'bean' will
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message