Announcement Announcement Module
No announcement yet.
SpringMacros problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • SpringMacros problem

    Hi All,
    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">
    <property name="suffix"><value>.vm</value></property>
    <property name="exposeRequestAttributes">
    <property name="exposeSessionAttributes">
    <property name="exposeSpringMacroHelpers">


    <bean id="messageSource" class=" eBundleMessageSource">
    <property name="basename"><value>MyResources</value></property>

    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, 11:22 PM.