You could inject a Spring MessageSource class and configure it as a
bean that points to your ResourceBundle.

http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/context/MessageSource.html

    <bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
        <property name="basename" value="ApplicationResources"/>
        <property name="useCodeAsDefaultMessage" value="true"/>
    </bean>

Matt

On Tue, Jun 10, 2008 at 5:44 AM,  <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 10, 2008 at 5:39 PM, Leo Barrientos C.
> <[EMAIL PROTECTED]> wrote:
>> Inject a String .. is quick.
>
> I need to have my application support differrent languages, then I'm
> trying to avoid
> injecting string directly
>
>>
>> What do you mean with service class?, a manager, a controller?
>>
>
> I mean a manager.
>
> Thx,
>
> --
> Ernas M. Jamil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to