At 4:19 PM -0700 5/8/05, rmanchu wrote:
i have to following scenario.

interface1 =>action1 => action2 => interface2

is calling another action from an action discouraged in struts?

what's the best solution for this? 1.2.4 to 1.3-dev

You'll find plenty of discussion on this in the mailing list archives and in the Wiki. In short, when you use an action as the path of an ActionForward, you cause Struts to re-execute its request processing process a second (or third or Nth) time. While this works for many people in many cases, it is not something which Struts was explicitly designed to support, and unexpected effects in the context of "action chaining" are unlikely to be considered "bugs".


In Struts 1.3, you may well be able to use commons-chain and Struts ability to execute a chain command as configured in an <action> mapping so that you don't actually need to chain actions; then again, perhaps the actions in the chain actually depend on the effects of re-executing the request processing process, so even then, chaining commands may not be enough.

Joe

--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex


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



Reply via email to