At 10:24 PM +0100 7/19/06, Adam Hardy wrote:
I'm trying to set up a new app using 1.3.5 and I am going to set up the process-view chain to do some view logic, if possible.

Please could someone in-the-know check these steps to configure 1.3.5:

*snip*

This sounds exactly right.

* write a bespoke command to do the view logic, extending ActionCommand.java (is that correct?) and reference it in the chain-config.xml in the 'process-view' chain

You don't *have* to extend ActionCommand, but by doing so you save yourself the trouble of casting the Context to an ActionContext.

By the way, the 'servlet-exception' chain from struts-core has only 2 commands: ExceptionHandler, PerformForward. But the chain from struts-tiles.jar has 4: ExceptionHandler, ExecuteForwardCommand, TilesPreProcessor, PerformForward. Is that 'ExecuteForwardCommand' tiles specific?

hm. No, ExecuteForwardCommand is not tiles specific. I can't think of any reason off-hand for the inconsistency, except for error. applying per-forward commands is something new that not many people have begun using, so I can imagine that no one has contemplated whether they should or should not be supported automatically on exception-handling commands or not. In general, I don't see why not, except that one wants to keep exception handling processes as simple as possible to minimize the risk of a secondary error derailing the handling of the original error.

Joe

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com

"The truth is that we learned from João forever to be out of tune."
        -- Caetano Veloso

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

Reply via email to