Antonio is correct. I was trying to create a Struts 1.3 Spring Command to autowire my actions. The code is 95% from Spring's 1.2 version (AutowireRequestProcessor), but then I realized I had no way to initialize the instance variables which are needed.

In the old RP, there was an init() method which allowed initialization for the methods. Unfortunately there seems to be no equivalent for commands, and it seems impossible for developers to do any kind of heavy initialization inside a command.

Now that I slept on it.... :-) Based on the advice, It sounds like I should write a Struts Plugin to expose any kind of variable into application scope. Then pull those out inside of execute().

I'll let you guys know how successful I am tonight with it.

Paul

Antonio Petrelli wrote:
2007/2/22, Wendy Smoak <[EMAIL PROTECTED]>:
(I never got very far with Spring + Commons Chain, but as Antonio
suggests, that could be  another option.)

Oops sorry, I confused Command with Action!
I don't know if Spring can inject beans in commands, sorry again :-(

Antonio

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



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

Reply via email to