You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nick Wesselman <nw...@halleonard.com> on 2004/03/22 19:03:50 UTC

complex forwarding logic?

I'm writing an application that will require some fairly complex 
forwarding logic. After an action completes, it will need to query my 
model for the current application "state" and translate that into the 
appropriate forward/next step. The forward itself may require some 
pre-processing. To further complicate matters, I'd like to be able to 
subclass and add or remove "steps" from the process.

At this point, I'm planning on creating a sort-of "forward helper" class 
which can translate a business state into an ActionForward and prepare 
the request for this forward. I'm a bit stuck though on my subclassing. 
It seems like I'd need some sort of factory to get the right helper 
class for my application, if I don't want to subclass all my actions as 
well. Am I making sense at all here? Any thoughts?

Nick


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org