Thanks Matt - that does the trick. Along similair lines, is there an equiavlent for the image attribute that generates a context relative path?
And ideally the same sort of idea for "dd.image.src.expand" in the .properties file? Where is the best place to start looking at the documentation? Many thanks, Paul -----Original Message----- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: 30 July 2003 14:27 To: [EMAIL PROTECTED] Subject: RE: [struts-menu] How do I generate context relative links? Use the "page" attribute in place of location. Using page="/event/log.jsp" will give you /<mycontext>/event/log.jsp. You can also use a "forward" attribute if you have global-forwards you'd like to reference. HTH, Matt -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul McCulloch Sent: Wednesday, July 30, 2003 2:53 AM To: '[EMAIL PROTECTED]' Subject: [struts-menu] How do I generate context relative links? Hi, I'm new to struts-menu so please forgive me if this is something obvious. In my menu-config.xml I have: <Menu name="EventMenu" title="EVENT" description="test"> <Item name="EMNew" title="NEWEVENT" location="../event/log.jsp" image="../images/case-new.png"/> Which works fine. But what I want is to use a 'location' relative to my context root: <Item name="EMNew" title="NEWEVENT" location="/event/log.jsp" image="../images/case-new.png"/> But when I do the above I get a link directly to /event/log.jsp rather than /<mycontext>/event/log.jsp Is there a solution to my problem. I;m using menu 1.2 & struts 1.1. Thanks, Paul ************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-menu-user ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-menu-user ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-menu-user
