Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Result Types > HttpHeader Result |
A custom Result type for setting HTTP headers and status by optionally evaluating against the ValueStack.
<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>