struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <>
Subject Re: action to action
Date Sun, 08 May 2005 22:52:59 GMT
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 Germuska       
"Narrow minds are weapons made for mass destruction"  -The Ex

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message