Details
Description
Moved from SF http://sourceforge.net/tracker/index.php?func=detail&aid=1071207&group_id=48726&atid=453974:
We would like a make to have the image attribute render
the img tags with the context path included (like the
page attribute does). Would it be possible just to have
this as an option (like using an imageContextRelative
attribute)?
We are using struts menu 2.3. Here is a sample of our
menu config and the code used to include the menu on
our page.
<Menu name="vHome" title=" ">
<Item title="Open Invoices"
page="/account/AccountInvoice.do?action=list"
image="/myrmc/templates/default/images/blue.arrow.gif"
roles="MYRMC-INVOICES,MYRMC-INTERNAL"/>
<Item title="Active Projects"
page="/project/ProjectList.do"
image="/myrmc/templates/default/images/blue.arrow.gif"
roles="MYRMC-PROJECTS,MYRMC-INTERNAL"/>
<Item title="Track Orders"
page="/order/OrderList.do"
image="/myrmc/templates/default/images/blue.arrow.gif"
roles="MYRMC-ORDERS,MYRMC-INTERNAL"/>
</Menu>
<menu:useMenuDisplayer name="Simple"
permissions="rolesAdapter">
<menu:displayMenu name="vHome"/>
</menu:useMenuDisplayer>
context-relative is now the default:
if (menu.getImage() != null)
{ menu.setImage(request.getContextPath() + menu.getImage()); }