jazman
Jun 5th, 2007, 03:18 AM
Hi guys,
I am trying to implement this bean but cannot seem to get the output that I want. In my application context I have the following definition;
<bean id="messageSource" class="org.springframework.context.support.ResourceBundle MessageSource">
<property name="basename"><value>messages</value></property>
</bean>
in my build path, with my class files, i have placed the messages.properties file and it contains the definition;
title=Ordering System
then in my jsp I have referenced this using the fmt tag;
<fmt:message key="title"/>
the prefix url is;
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
Im sure i've done everything right. I've used the spring mvc step by step as a skeleton guide. However instead of outputting the message "Ordering System" I simply get;
???title???
The only thing I could think of would be that the versions of jstl are in conflict with something. I am using a jsp 2.0 container, tomcat 5.5 and hence a jstl 1.1 definition. So everything there seems to okay. Is there anything else that I have overlooked or any other areas that could cause this issue?
I am trying to implement this bean but cannot seem to get the output that I want. In my application context I have the following definition;
<bean id="messageSource" class="org.springframework.context.support.ResourceBundle MessageSource">
<property name="basename"><value>messages</value></property>
</bean>
in my build path, with my class files, i have placed the messages.properties file and it contains the definition;
title=Ordering System
then in my jsp I have referenced this using the fmt tag;
<fmt:message key="title"/>
the prefix url is;
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
Im sure i've done everything right. I've used the spring mvc step by step as a skeleton guide. However instead of outputting the message "Ordering System" I simply get;
???title???
The only thing I could think of would be that the versions of jstl are in conflict with something. I am using a jsp 2.0 container, tomcat 5.5 and hence a jstl 1.1 definition. So everything there seems to okay. Is there anything else that I have overlooked or any other areas that could cause this issue?