Issue Details (XML | Word | Printable)

Key: SM-103
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Matt Raible
Reporter: Seth Jackson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts Menu

Struts-Menu with Strut2 integration

Created: 27/Jan/10 08:27 AM   Updated: 28/Jan/10 11:45 AM
Component/s: Documentation
Affects Version/s: 2.4.3
Fix Version/s: None

Environment: Windows XP, Tomcat 6x, Struts-Menu 2.4.3, Java 1.6x, Internet Explorer, Struts 2x


 Description  « Hide
I've been trying to integrate the Struts-Menu into Struts 2 and I've hit a lot of roadblocks. As of now, the outstanding issue is how to configure the resource bundle for Struts 2 to read the properties. Not only how to configure it, but where to place the properties file so that the framework will use it properly.

There's a brief description on how to use the menu with Struts 2, but could a more detailed explanation be created?



Seth Jackson added a comment - 28/Jan/10 11:45 AM
After further investigation, I was able to integrate the Struts-Menu. It should be noted on where to keep the properties file, along with how to reference that file within the useMenuDisplayer tag.

Save the DisplayerStrings.properties in the package com.mypackage.

Reference it as such:

<menu:useMenuDisplayer name="DropDown" config="com.mypackage.DisplayerStrings">
  <menu:displayMenu name="FileMenu"/>
  <menu:displayMenu name="EditMenu"/>
</menu:useMenuDisplayer>