我目前在我的网络应用程序中使用Spring 3.0.4
和Apache Tiles 2.2.2
。我想用Apache Velocity 1.6.3
取代JSP,但是我对如何做到这一点感到困惑。最终,我希望能够在Tiles定义中执行以下操作:使用Velocity与瓷砖和弹簧
<definition name="basicLayout" template="/WEB-INF/layout/basicLayout.vm">
<put-attribute name="header" value="/WEB-INF/layout/header.vm" />
<put-attribute name="content-area" value="/WEB-INF/layout/content.vm" />
<put-attribute name="footer" value="/WEB-INF/layout/footer.vm" />
</definition>
这可能吗?如果是这样,我是否需要创建任何自定义视图类来支持它?我目前使用标准的Spring VelocityConfigurer,TilesConfigurer,VelocityView,TilesView类。
谢谢!
你见过春季参考文献第16.4节了吗? http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/view.html – iftheshoefritz 2010-11-25 20:36:23