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

根据ValueStack返回自定义的HTTP header

参数

  • status - HTTP响应的状态码.
  • parse - 默认为true. 如果设置为false, header参数不会被当作Ognl表达式解析.
  • headers - header中的值.

例子

<result name="success" type="httpheader">
  <param name="status">204</param>
  <param name="headers.a">a custom header value</param>
  <param name="headers.b">another custom header value</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