You should be able to use the page attribute (instead of location) for
context relative links.

Off hand, I forget if this in 1.2 or in the head.

Scott

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Paul McCulloch
> Sent: Wednesday, July 30, 2003 4: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

Reply via email to