How to load i18n Property file using jQuery.i18n.properties.js + Spring 3 mvc -


i have configured localization , internalization in spring 3 mvc.i put properties files in resource folder.and working properly.now want use javascript internalization provide proper alert messages according languages. project structure given below properties files

project | | src resource |_message.properties |_message_en.properties |_message_es.properties 

i want use jquery internalization.now want access these properties files using jquery.i have written below code in javascript load properties file

jquery.i18n.properties({     name:'message',      path:'resources/',      mode:'both',     language:'en' });  **but getting http 404 error during loading of page.**  **get http://server ip:port/viuw/resources/message.properties?_=1373877147985 404 (not found)**   how load property files using jquery.i18n.property.js?  configuration   <bean id="localeresolver"         class="org.springframework.web.servlet.i18n.sessionlocaleresolver">         <property name="defaultlocale" value="es" />     </bean>      <bean id="localechangeinterceptor"         class="org.springframework.web.servlet.i18n.localechangeinterceptor">         <property name="paramname" value="language" />     </bean>     <bean         class="org.springframework.web.servlet.mvc.support.controllerclassnamehandlermapping">         <property name="interceptors">             <list>                 <ref bean="localechangeinterceptor" />             </list>         </property>     </bean>     <bean id="messagesource"         class="org.springframework.context.support.resourcebundlemessagesource">         <property name="basename" value="message" />     </bean>   web.xml file configuration      <servlet>     <servlet-name>spring</servlet-name>     <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class>     <load-on-startup>1</load-on-startup>     </servlet>     <servlet-mapping>     <servlet-name>spring</servlet-name>     <url-pattern>*.html</url-pattern>     <url-pattern>/</url-pattern>     </servlet-mapping>     <welcome-file-list>     <welcome-file>index.html</welcome-file>     </welcome-file-list> 

the path list in project structure resource, not resources. hope got around error.


Comments