-
Nov 9th, 2005, 11:20 AM
#1
<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"/>
</bean>
I have a simple test.jsp (request is not going through dispatcherServlet) that uses the tag like so:
<spring:message code="title"/>
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.
Any suggestions?
-
Nov 9th, 2005, 01:14 PM
#2
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'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules