Announcement Announcement Module
Collapse
No announcement yet.
<mvc:annotation-drivens> caused me problem with multi language extension Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <mvc:annotation-drivens> caused me problem with multi language extension

    Hi, i'm new to spring 3.0 i'm trying to use mutli langauage extention using .properties resources. But the multi language fonction doesn't work when i put <mvc:annotation-drivens> in my configuration file, removing the latter prevent validator form to work correctly,

    Please help me

  • #2
    Hello

    Start reading the 17. Web MVC framework

    Comment


    • #3
      plz i need a help :'(

      Comment


      • #4
        Finally i resolved the probleme by replacing

        Code:
        <bean id="handlerMapping"
        		class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
        		<property name="interceptors">
        			<ref bean="localeChangeInterceptor" />
        		</property>
        	</bean>
        BY

        Code:
        <mvc:interceptors>
        	  <mvc:interceptor>
        	     <mvc:mapping path="/**"/>
        	         <bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" >
        	             <property name="paramName" value="lang" />
        	         </bean>
        	    </mvc:interceptor>
        	</mvc:interceptors>

        Comment

        Working...
        X