On the other hand, keep in mind that Struts doesn't recommend you
chain actions the way you could be doing now.

Hubert

From the Struts wiki, "ActionChaining" topic:

Ted Husted wrote:

IMHO, Action chaining is linking three or more Actions together. (e.g., three points determine a chaine :0) Simply forwarding from one Action to another, so the second can select the page and complete the response, is an ordinary and expected use of the framework.

The "evil" part is when people start using the Action objects as an API and want to pass (new) parameters from one Action to another, either by changing the properties on the ActionForm or by creating a new query string on the fly. The danger here is that the Action *classes* become coupled and start looking like a mess of "GOTO"s.

While there could be exceptions, this usually indicates that there is not sufficient separation between the Action classes and the business tier. Why? Because if I have a decent business facade, I shouldn't have to kludge-around with setting new properties on an ActionForm or as a request parameter. I should be able to code directly to the business facade.

-Ted.


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



Reply via email to