Resource Bundle problem

View: New views
2 Messages — Rating Filter:   Alert me  

Resource Bundle problem

by Andrés Torres García :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I´m having problems while using the resources bundle in struts menu. In getting the key in the properties file instead the value. In this case i´m getting oficina.menu instead Departamentos.

ApplicationResources.properties
oficina.menu = Departamentos

My configuration files have:

struts-config

<message-resources parameter="resources.ApplicationResources" />

menu-config

    <Menu name="MenuOficinas" title="oficina.menu" action="/oficinas?buttons[0]=newOficina">
    </Menu>


menu.jsp

<%@ taglib uri="http://struts-menu.sf.net/tag" prefix="menu" %>

<html:xhtml />
<!-- GENERACION DE MENU Strus-menu 2.0 -->
<menu:useMenuDisplayer name="PrincastTabbedMenu" bundle="org.apache.struts.action.MESSAGE" permissions="rolesAdapter">





------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Re: Resource Bundle problem

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would suggest looking at the sample application to try and figure out what you're doing differently.

Matt

2009/4/22 Andrés Torres García <towerspro@...>
Hi!

I´m having problems while using the resources bundle in struts menu. In getting the key in the properties file instead the value. In this case i´m getting oficina.menu instead Departamentos.

ApplicationResources.properties
oficina.menu = Departamentos

My configuration files have:

struts-config

<message-resources parameter="resources.ApplicationResources" />

menu-config

    <Menu name="MenuOficinas" title="oficina.menu" action="/oficinas?buttons[0]=newOficina">
    </Menu>


menu.jsp

<%@ taglib uri="http://struts-menu.sf.net/tag" prefix="menu" %>

<html:xhtml />
<!-- GENERACION DE MENU Strus-menu 2.0 -->
<menu:useMenuDisplayer name="PrincastTabbedMenu" bundle="org.apache.struts.action.MESSAGE" permissions="rolesAdapter">





------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user



------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user