This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Multiple menu-config.xml files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple menu-config.xml files" Watch "Multiple menu-config.xml files" New topic
Author

Multiple menu-config.xml files

Thilina Annakkage
Greenhorn

Joined: Dec 24, 2004
Posts: 27
I like to have several menu-config.xml files, one for each module in my application. I wonder whether it is possible to achieve this.

I tried several ways, and I get XML parser error.

Here is what I tried.

In web.xml,
<context-param>
<param-name>menuConfigLocation</param-name>
<param-value>
/WEB-INF/module1/menu-config-module1.xml
/WEB-INF/module2/menu-config-module2.xml
</param-value>
</context-param>

<listener>
<listener-class>net.sf.navigator.menu.MenuContextListener</listener-class>
</listener>

Is it possible to have separate menu-config.xml for each module?


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple menu-config.xml files