index.jsp
<menu:useMenuDisplayer name="XtreeMenu" >
<menu:displayMenu name="TabbedHome"/>
<menu:displayMenu name="TabbedAbout"/>
<menu:displayMenu name="TabbedExit"/>
</menu:useMenuDisplayer>
<iframe id="main" name="main" width="500" height="200"></iframe>
menu-config.xml
<Menu name="TabbedHome" title="Home" location="?Home" target="main"/>
<Menu name="TabbedAbout" title="About"> <!-- No location, uses first item's location (People) -->
<Item name="People" title="People" location="?People" target="main"/>
<Item name="Careers" title="Careers" location="?Careers" target="main"/>
<Item name="Press" title="Press" location="?Press"
οnclick="alert('This item has an onclick handler in menu-config.xml.')"/>
<Item name="Locations" title="Locations" location="?Locations"/>
</Menu>
在struts-config.xml中设置target无效