You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by s <sr...@excite.com> on 2012/06/29 20:00:42 UTC
2 ApplicationResources.properties file
I am working on an application and it has 2 modules.
I need to create 2 seperate ApplicationResources.properties file for each module.
This properties files should by loaded by Struts 2 automatically (without any code).
Is there any way to achieve this in Struts 2 ...?
--Sam
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: 2 ApplicationResources.properties file
Posted by Martin Gainty <mg...@hotmail.com>.
Hi Sam
to acquire Locale Specific textcall findDefaultText populating string to find as first parameter
the intended Locale as second parameter for example
com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText("default.testmessage", locale)
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Fri, 29 Jun 2012 14:00:42 -0400
> CC:
> To: user@struts.apache.org
> From: srremail@excite.com
> Subject: 2 ApplicationResources.properties file
>
> I am working on an application and it has 2 modules.
>
> I need to create 2 seperate ApplicationResources.properties file for each module.
>
> This properties files should by loaded by Struts 2 automatically (without any code).
>
> Is there any way to achieve this in Struts 2 ...?
>
> --Sam
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>