You can try something like the Interceptor pattern. For a specific request,
register a series of command classes with a Manager. The Manager calls each
interceptor in the order specified. This way you can add commands ( steps )
without changing existing code. Almost like Struts Action forwarding...( :-)
)


Thanks
 
-- pady
[EMAIL PROTECTED]
 

-----Original Message-----
From: Nick Wesselman [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 22, 2004 1:04 PM
To: Struts Users Mailing List
Subject: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

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

Reply via email to