In S2, the equivalent of ActionForwards are Results. S2 Results are
intended to be extensible objects, and I expect you would move this
code to a custom Result (where it belongs), rather than have it spill
over into the Action.

-Ted.

On 7/24/06, Adam Hardy <[EMAIL PROTECTED]> wrote:
Ted Husted on 24/07/06 15:22, wrote:
> On 7/23/06, Adam Hardy <[EMAIL PROTECTED]> wrote:
>> - a mechanism for handling 'on-the-fly' URL & query strings for
>> actionForwards
>
> Like S1, S2 lets you specify a "default" action to use when nothing
> else matches. Wildcards are also supported.

I think I am not hitting the mark here. My BaseAction receives an ActionForward
name (not object) back from the child action. Before my BaseAction pulls that
named actionForward out of the actionMapping, it checks whether the name of the
actionForward I want equals CUSTOM_FORWARD, a constant.

In that case I then look for CUSTOM_URL and CUSTOM_QUERY_STRING in the request
attributes and build a new actionForward from scratch.

This however is merely bells and whistles, I only mention it because I
occasionally but not infrequently see people asking how to do it. I thought
there might be a place in the request-processing lifecycle for it.

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

Reply via email to