contextRelative locations

"Brown, James" <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <6E6C9319C3F683419F5E804751FA38DFEEA9F0@cator-exch1.na.uis.unisys.com>
Is it possible to specify context relative (similar to struts global
forward's contextRelative) equal to true such that locations starting
with "/" will have a "root" of treated as 
http://host/<context>/

Rather than 
http://host/

The issue I am having is that I have a large menu structure that I would
like to use in multiple places within a multi-module application (one
parent struts-config and 3 children). The layout of the site is as
follows:
/
/mod1
/mod2
/mod3

My desire is that when a user requests:
http://host/<context>/
http://host/<context>/mod1
http://host/<context>/mod2
http://host/<context>/mod3

They receive the same menu, but if I specify locations such as
location="mod1/page1" they will not work when displayed within the
modules as the URL becomes if in mod1:
http://host/<context>/mod1/mod1/page1

if I specify locations such as location="/mod1/page1" they will not work
when displayed within the modules as the URL becomes:
http://host/mod1/mod1/page1

Note the missing <context> which I cannot hard code as it changes as we
roll through our environments from development through to production.

Any ideas?

-- James 

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
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.