Vic.

Hmmm. I think the "chain of responsibility" pattern is not made to configure the chains on the fly ;-). If you have a decision configure all chains that are envolved and let the commands themself decide if they can fulfill the business logic or not.

If a command aaa has the desision to go either to command bbb or to command ccc configure both.

<chains>
 <chain name="single">
     <command className="org.strutsit.chain.aaa"/>
     <command className="org.strutsit.chain.bbb"/>
     <command className="org.strutsit.chain.ccc"/>
 </chain>
</chains>

Either command aaa can fill the context with the information which command has to follow (context.put("next", "ccc")); or the following command themself has the responsibility to fulfill the request, or not.

-Manfred


Vic Cekvenich wrote:

I want to from one command create another command to go to?

How?
Right now I place the catalog in the context and then use that.

Is there a better way?

tia,
.V


--------------------------------------------------------------------- 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