Announcement Announcement Module
Collapse
No announcement yet.
spring annotation MVC and velocity Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring annotation MVC and velocity

    hi,i have a problem about veloctiy toolbox.xml in spring mvc

    my code:

    <bean id="velocityViewResolver"
    class="org.springframework.web.servlet.view.veloci ty.VelocityViewResolver">

    <property name="toolboxConfigLocation">
    <value>/WEB-INF/config/tools.xml</value>
    </property>
    <property name="dateToolAttribute">
    <value>dateTool</value>
    </property>
    <property name="numberToolAttribute">
    <value>numberTool</value>
    </property>
    ...
    </bean>

    tools.xml

    <tools>
    <data key="author">Nathan Bubna</data>
    <toolbox scope="application">
    <tool key="mathTool" class="org.apache.velocity.tools.generic.MathTool"/>
    </toolbox>
    </tools>

    i start my project ,have no problem. but when i use $author,it can't resolve,
    please help!
Working...
X