I implemented the variable substitution in CVS this weekend - using
methods similar to what you've described below.  As far as top-level
menus - which displayer are you using?

Thanks,

Matt

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad
Skinner
Sent: Friday, September 19, 2003 3:27 PM
To: [EMAIL PROTECTED]
Subject: [struts-menu] RE: Populating a MenuRepository from outside the
menu-config.xml file


I guess I would rather not reinvent the wheel, so
using the JSTL makes
since to me; but on another note I'd have to put some
more thought into
this.

There are a couple of things that are interesting
about this. First, it
is my understanding that the menus are created when
the plugin
initializes so the menu urls would contain the
variable definitions you
place in the configuration file. Consequenlty, would
you not have to
modify the getter on the location property of the
MenuBase to perform
the lookup or translation of any variables it finds in
it? If this is
the case a better solution may be to have a method parseVariables(String
aString) that would take a string and search the page
scopes for any
matches found in the string. Then the getters could be
modified to
"return parseVariables( location )".

Side Question, is it possible to have a link as a top
level item in the
menu?

For Example, we have the following menu structure:

GroupWise
Files
Forums
    Forum 1
    Forum 2
Groups
    Group 1
    Group 2
News
    NewsSpread 1
    NewsSpread 2

I need to know if it is possible to place the
GroupWise and Files links
at the root of the menu? OR is it possible to hide the
link to the top
level menu and always have it open?



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
struts-menu-user mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to