From: Andrew T. <and...@ds...> - 2004-06-06 21:10:37
|
Obviously this will be a dumb question, but I can't get the message.properties file to be read, which causes the application NOT to load - error about label required. Now, I have my messages.properties file in the src directory My application-context.xml has: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="application" class="org.springframework.rcp.application.Application"> <constructor-arg index="0"> <ref bean="applicationInfo"/> </constructor-arg> </bean> <bean id="applicationInfo" class="org.springframework.rcp.application.ApplicationInfo"> <property name="version"><value>1.0</value></property> <property name="buildId"><value>20040530001</value></property> </bean> <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basenames"> <list> <value>messages</value> </list> </property> </bean> </beans> My messages.properties file has: applicationInfo.title=Test Application applicationInfo.caption=Test Application Caption, Spring RCP applicationInfo.description=Test Spring RCP And what happens is that the two properties in the application exist fine, but the properties from messages.properties does not - obviously a problem with the messageSource section of the application-context, but what? My directory structure is: /src /src/messages.properties /src/org/at/Start.java /resources/application-context.xml Andrew |