You shouldn't be calling an Action from an Action. Action chaining is not recommended and is considered poor practice. Action classes are an implementation of Command pattern and as such should delegate to reusable business components.
I would refactor your business logic embedded in Action classes into business components or application services. You can then call these from any Action class and they will be easier to unit test.
Yes, very true, but i dont have the spource code of the actionclass I am calling
so I cant refactor och do what you suggest.
If you want Struts to provide the ActionForm for each action then you must "bind" the ActionForm to the Action class in the action mapping. So if Actions, A, B, and C all need ActionFormC then you will have to define this in the struts-config.xml file. One way of maintaining state across actions is to place the ActionForm in session scope.
AFAIK the action that i want to call gets its parameters from the ActionFrom so
thats why I want to create it , set some vaiables and send it to the reciving action class.
Can I do this and if so how?
Thanks for your answer.
Ralf
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]