The modification was actually trivial.  Rather than the current code of

String action = "" null, null, null,
                                    menu.getAction(), null, null, false);

(which incidentally is now deprecated)

I changed it to

String action = "" null, null, null,
                                    menu.getAction(), menu.getModule(), null, null, false);

That new call is exactly what the implementation of RequestUtils.computeURL is doing (and its specifying null as the module).  Thus, in the case where the module attribute is null it behaves exactly as it does today.  When specified, it is looked-up and added to the URL by Struts.

Tim


View this message in context: Re: Linking to actions in other Struts modules
Sent from the struts-menu-user forum at Nabble.com.

Reply via email to