-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nathan,

Nathan Bubna wrote:
> I'm not sure.  Have you tried it? 

Of course! ;)

It doesn't work :(

> StrutsLinkTool.setForward()
> basically just hands things off to StrutsUtils.getForwardURL(request,
> app, forward), which says it "Returns the action forward name
> converted into a server-relative URI reference" and doesn't mention
> the word "global".

StrutsLinkTool.setForward does say "global" while
StrutsUtils.getForwardURL does not. However, a quick look at the code
shows that there's no attempt to deal with the currently-running
ActionConfig:

"
        ModuleConfig moduleConfig =
            ModuleUtils.getInstance().getModuleConfig(request, app);
        ForwardConfig fc = moduleConfig.findForwardConfig(forward);
// massage the String a bit and return
"

I'm not sure how it would affect any other code, but it would be nice to
add/change-it-to something like this:

ActionConfig actionConfig = request.getAttribute(Globals.MAPPING_KEY);
ForwardConfig fc = actionConfig.findForward(forward);
// massage and return

ActionConfig.findForward returns either a local forward or a global
forward if no matching local is found (or null is nothing is found at all).

I would imagine that the ActionConfig would already know about its
enclosing ModuleConfig so I think it can be a straight replacement.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGQKdZ9CaO5/Lv0PARAsxFAJ9XeSNrBMa0tfRfx0iOcwtYuiZ8VwCeOInh
MVmh/8Hloz1oWVoiu/5zQKc=
=H3lX
-----END PGP SIGNATURE-----

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

Reply via email to