Nov 9th, 2005, 11:20 AM
<spring:message> Tag not executing??
I'm trying to use the ResourceBundleMessageSource and the <spring:message> tag. Below is my is my bean def.
<bean id="messageSource" class="org.springframework.context.support.ResourceBundl eMessageSource">
<property name="basename" value="messages"/>
I have a simple test.jsp (request is not going through dispatcherServlet) that uses the tag like so:
Very simple, but of course my message is not showing up when i view the test page. When i view the html source of the jsp from the browser...I see that the tag did not get executed/compiled by Tomcat.
I see this in the source: <spring:message code="title"/>
I'm sure i'm missing something elementary but i have no idea what.
Nov 9th, 2005, 01:14 PM
I figured it out....I'm using sitemesh as my view decorator and in my main template file (main.jsp) i'm including a jspf that has all of my tag definitions. I assumed that since i was adding the tags there, that i didn't need to "re-import" the tags again in the jsp's that were' being decorated....I guess that's not the case....It kinda makes sense now that i think about it....but i'm not sure "exactly" why....anyways.....keep on truckin'