You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ne...@srb-intl.com on 2003/04/03 21:17:06 UTC

Different reource bundle.

Hello there,

Project I am working on has resources organized in a different way than standard:
Thing is that resources are kept in format:
 
  message1.en=Hello!
  message1.fr=Bonjur!

And whole mechanism of resources retrieval widely implemented. 

So question is: 

IS THERE A WAY TO WARP/OVERRIDE/INHERIT OR OTHER WAY
TO MAKE EXISTING RESOURCES MECHANISM PLUG UNDER STRUTS?

thanks for reading,
~nn


   


Re: Different reource bundle.

Posted by James Mitchell <jm...@apache.org>.
On Thu, 2003-04-03 at 14:17, Nerijus.Navickas@srb-intl.com wrote:
> Hello there,
> 
> Project I am working on has resources organized in a different way than standard:
> Thing is that resources are kept in format:
>  
>   message1.en=Hello!
>   message1.fr=Bonjur!
> 
> And whole mechanism of resources retrieval widely implemented. 
> 
> So question is: 
> 
> IS THERE A WAY TO WARP/OVERRIDE/INHERIT OR OTHER WAY
> TO MAKE EXISTING RESOURCES MECHANISM PLUG UNDER STRUTS?

You could make it work if you implement your own MessageResources.  As
long as you stick to the MessageResources api, then it should work
fine.  I say this assuming that your 'struts app' will be referencing
them as 'message1' and not 'message1.en'.

> 
> thanks for reading,
> ~nn
> 
> 
>    
> 
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org