JavaScud | Forum | JIRA | Blog |
  Dashboard > WebWork2文档中文化计划 > ... > Result Types > Velocity Result
  WebWork2文档中文化计划 Log In View a printable version of the current page.  
  Velocity Result
Added by scud, last edited by 黑灵 on May 05, 2006  (view change)
Labels: 
(None)

这个Result用Servlet容器中的JspFactory模拟JSP执行环境来显示Velocity模板, 然后以流的形式输出到Servlet Output.

参数

  • location (默认) - 模板的位置.
  • parse - 默认为true. 如果设置为false, location参数不会被当作Ognl表达式解析.

这个Result拥有WebWorkResultSupport所有的规则

例子

<result name="success" type="velocity">
  <param name="location">foo.vm</param>
</result>
Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators