Re: Resource Bundle problem

Matt Raible <matt-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]> Wed, 22 Apr 2009 08:47:24 -0600
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
--===============8425611387008027831==
Content-Type: multipart/alternative; boundary=0016e64355e455af90046825d87b

--0016e64355e455af90046825d87b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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

Matt

2009/4/22 Andr=C3=A9s Torres Garc=C3=ADa <[email protected]>

> Hi!
>
> I=C2=B4m 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=
=C2=B4m
> getting oficina.menu instead Departamentos.
>
> ApplicationResources.properties
> *oficina.menu =3D Departamentos*
>
> My configuration files have:
>
> *struts-config*
>
> *<message-resources parameter=3D"resources.ApplicationResources" />*
>
> *menu-config*
> *
>     <Menu name=3D"MenuOficinas" title=3D"oficina.menu"
> action=3D"/oficinas?buttons[0]=3DnewOficina">
>     </Menu>*
>
> *menu.jsp*
>
> *<%@ taglib uri=3D"http://struts-menu.sf.net/tag" prefix=3D"menu" %>*
>
> *<html:xhtml />
> <!-- GENERACION DE MENU Strus-menu 2.0 -->
> <menu:useMenuDisplayer name=3D"PrincastTabbedMenu"
> bundle=3D"org.apache.struts.action.MESSAGE" permissions=3D"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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>
>

--0016e64355e455af90046825d87b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I would suggest looking at the sample application to try and figure out wha=
t you&#39;re doing differently.<br><br>Matt<br><br><div class=3D"gmail_quot=
e">2009/4/22 Andr=C3=A9s Torres Garc=C3=ADa <span dir=3D"ltr">&lt;<a href=
=3D"mailto:[email protected]">[email protected]</a>&gt;</span><br>

<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi!<br><br>I=C2=
=B4m having problems while using the resources bundle in struts menu. In ge=
tting the key in the properties file instead the value. In this case i=C2=
=B4m getting oficina.menu instead Departamentos.<br>

<br>
ApplicationResources.properties<br><i>oficina.menu =3D Departamentos</i><br=
><br>My configuration files have:<br><br><b>struts-config</b><br><br><i>&lt=
;message-resources parameter=3D&quot;resources.ApplicationResources&quot; /=
&gt;</i><br>



<br><b>menu-config</b><br><i><br>=C2=A0=C2=A0=C2=A0 &lt;Menu name=3D&quot;M=
enuOficinas&quot; title=3D&quot;oficina.menu&quot; action=3D&quot;/oficinas=
?buttons[0]=3DnewOficina&quot;&gt;<br>=C2=A0=C2=A0=C2=A0 &lt;/Menu&gt;</i><=
br><br><b>menu.jsp</b><br><br><i>&lt;%@ taglib uri=3D&quot;<a href=3D"http:=
//struts-menu.sf.net/tag" target=3D"_blank">http://struts-menu.sf.net/tag</=
a>&quot; prefix=3D&quot;menu&quot; %&gt;</i><br>



<br><i>&lt;html:xhtml /&gt;<br>&lt;!-- GENERACION DE MENU Strus-menu 2.0 --=
&gt;<br>&lt;menu:useMenuDisplayer name=3D&quot;PrincastTabbedMenu&quot; bun=
dle=3D&quot;org.apache.struts.action.MESSAGE&quot; permissions=3D&quot;role=
sAdapter&quot;&gt;</i><br>



<br><br><br>
<br>-----------------------------------------------------------------------=
-------<br>
Stay on top of everything new and different, both inside and<br>
around Java (TM) technology - register by April 22, and save<br>
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.<br>
300 plus technical and hands-on sessions. Register today.<br>
Use priority code J9JMT32. <a href=3D"http://p.sf.net/sfu/p" target=3D"_bla=
nk">http://p.sf.net/sfu/p</a><br>__________________________________________=
_____<br>
struts-menu-user mailing list<br>
<a href=3D"mailto:struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org">struts-menu-user@=
lists.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/struts-menu-user" t=
arget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/struts-menu-u=
ser</a><br>
<br></blockquote></div><br>

--0016e64355e455af90046825d87b--


--===============8425611387008027831==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
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
--===============8425611387008027831==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
struts-menu-user mailing list
struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

--===============8425611387008027831==--