API / Apache Velocity Interview questions
How does Velocity integrate with the Apache Struts framework?
Struts 2 ships a Velocity result type that lets an action map to a .vm file instead of a JSP, so after an action executes, Struts merges the action's ValueStack into a VelocityContext and renders the configured template as the response.
This is largely a legacy pattern today, Struts more commonly ships with a FreeMarker or JSP result by default in current tutorials, but the Velocity result plugin is still present for applications that adopted it years ago and haven't migrated. Turbine, an older Apache MVC framework, used Velocity even more centrally as its default view technology.
More Related questions...