Announcement Announcement Module
Collapse
No announcement yet.
Is Struts with Velocity supported in Spring ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is Struts with Velocity supported in Spring ?

    How to access ApplicationContext beans from Velocity templates backed by Struts ?

    I'm trying to add ApplicationContext to old Struts/Velocity application and I dont want to migrate to Struts MVC yet..

  • #2
    Re: Is Struts with Velocity supported in Spring ?

    Originally posted by fleegle
    How to access ApplicationContext beans from Velocity templates backed by Struts ?

    I'm trying to add ApplicationContext to old Struts/Velocity application and I dont want to migrate to Struts MVC yet..
    You could put ApplicationContext's bean into the model (the return value of handle operation in your Controller's implementation).

    The beauty of Spring is that it shields the view's implementation specifics so migrating from one view (i.e. Velocity) to another is quite simple, most of the work would be in configuration.

    Comment

    Working...
    X