Browse Source

SEC-256: Contacts sample not displaying localized exceptions correctly.

Ben Alex 19 years ago
parent
commit
9a90e4e1aa

+ 8 - 0
samples/contacts/src/main/webapp/common/WEB-INF/applicationContext-common-authorization.xml

@@ -11,6 +11,14 @@
 
 <beans>
 
+	<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
+		<property name="basenames">
+			<list>
+				<value>classpath:/org/acegisecurity/messages</value>
+			</list>
+		</property>
+	</bean>
+
    <!-- ~~~~~~~~~~~~~~~~~~ "BEFORE INVOCATION" AUTHORIZATION DEFINITIONS ~~~~~~~~~~~~~~~~ -->
 
    <!-- ACL permission masks used by this application -->