Re: Linking to actions in other Struts modules

"Tim Morrow 2 (sent by Nabble.com)" <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
The modification was actually trivial.  Rather than the current code of

String action = RequestUtils.computeURL(pageContext, null, null, null,
                                    menu.getAction(), null, null, false);

(which incidentally is now deprecated)

I changed it to

String action = TagUtils.getInstance().computeURL(pageContext, 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: http://www.nabble.com/Linking-to-actions-in-other-Struts-modules-t1073516.html#a2794456
Sent from the struts-menu-user forum at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.