类 VelocityLayoutView

  • 所有已实现的接口:
    Aware, BeanNameAware, InitializingBean, ApplicationContextAware, ServletContextAware, View

    @Deprecated
    public class VelocityLayoutView
    extends VelocityToolboxView
    已过时。
    as of Spring 4.3, in favor of FreeMarker
    VelocityLayoutView emulates the functionality offered by Velocity's VelocityLayoutServlet to ease page composition from different templates.

    The url property should be set to the content template for the view, and the layout template location should be specified as layoutUrl property. A view can override the configured layout template location by setting the appropriate key (the default is "layout") in the content template.

    When the view is rendered, the VelocityContext is first merged with the content template (specified by the url property) and then merged with the layout template to produce the final output.

    The layout template can include the screen content through a VelocityContext variable (the default is "screen_content"). At runtime, this variable will contain the rendered content template.

    从以下版本开始:
    1.2
    作者:
    Darren Davison, Juergen Hoeller
    另请参阅:
    setLayoutUrl(java.lang.String), setLayoutKey(java.lang.String), setScreenContentKey(java.lang.String)