Apr 16th, 2008, 07:06 AM
m new to spring and using spring with velocity.
My problem is that, I want to get the lables for my form fields from a resource file for which I had used following statement in my velocity file:
accordingly i have made following entries in my xml file:
<bean id="viewResolver" class="org.springframework.web.servlet.view.veloci ty.VelocityViewResolver">
<bean id="messageSource" class="org.springframework.context.support.Resourc eBundleMessageSource">
where MyResources is a properties file in WEB-INF/Classes dir.
now, the problem is that, when I run my velocity file following value appers on the browser:
Here, I think the problem is that $springMacroRequestContext is not getting resolved. Please help. Its urgent.
Thanx in advance
Last edited by henry martin; Apr 16th, 2008 at 11:22 PM.