Hi,

I am using #springMessage in velocity template for getting message values from message resource bundle.

in xxx-sevlet.xml i configured like this.

<bean id="messageSource" class="org.springframework.context.support.Resourc eBundleMessageSource">
<property name="basename">
<value>messages</value>
</property>
</bean>

and i have messages.propoerties in classpath with 2 other language properties.

default language

title = TITLE
heading=HEADING
greeting=GREETING

norwegina langiuage

title = TITLE_NO
heading=HEADING_NO
greeting=GREETING_NO



bt the problem is its displaying for default language only. If i change the language settings in browser its not affecting the message keys. So i alwys gets message for 3springMessage("title") as TITLE independant of language.

In one thread i found the ben configuration should in be in application ocntext.xml.
i tried that way also.

Please help.


thanks in adavance
Nidhi