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.
Re: [struts-menu] Linking to actions in other Struts modules
Tim Morrow 2 (sent by Nabble.com) Mon, 06 Feb 2006 18:32:05 -0800
- [struts-menu] Linking to actions in othe... Tim Morrow 2 (sent by Nabble.com)
- Re: [struts-menu] Linking to action... Matt Raible
- Re: [struts-menu] Linking to ac... Tim Morrow 2 (sent by Nabble.com)
- Re: [struts-menu] Linking t... Matt Raible
- Re: [struts-menu] Linki... Tim Morrow 2 (sent by Nabble.com)
