header"
From Documentation
Maya001122 (talk | contribs) |
|||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{ZUMLReferencePageHeader}} | ||
+ | |||
__TOC__ | __TOC__ | ||
− | + | '''Syntax:''' | |
<?header name="..." value="..." [append="true|false"] [if="..."] [unless="..."] ?> | <?header name="..." value="..." [append="true|false"] [if="..."] [unless="..."] ?> | ||
− | |||
− | + | {{versionSince| 5.0.2}} | |
Specifies a response header. It has the same effect as the invocation of <javadoc method="setResponseHeader(java.lang.String, java.lang.String)">org.zkoss.zk.ui.Execution</javadoc>. | Specifies a response header. It has the same effect as the invocation of <javadoc method="setResponseHeader(java.lang.String, java.lang.String)">org.zkoss.zk.ui.Execution</javadoc>. | ||
− | + | = name = | |
Required | Required | ||
Line 15: | Line 16: | ||
Specifies the name of the header, such as <code>Pragma</code>. | Specifies the name of the header, such as <code>Pragma</code>. | ||
− | + | = value = | |
Required, EL allowed | Required, EL allowed | ||
Line 21: | Line 22: | ||
Specifies the value of the header. The value could be an instance of string or Date (java.util.Date). | Specifies the value of the header. The value could be an instance of string or Date (java.util.Date). | ||
− | + | = append = | |
Optional, EL allowed | Optional, EL allowed | ||
Default: false | Default: false | ||
− | Specifies whether to append a response header or to replace (aka., set). By default, it is false. It means the previous header with the same name will be replaced. If you want to append the value to the previous value, specify it to true. | + | Specifies whether to append a response header or to replace (aka., set). By default, it is false. It means that the previous header with the same name will be replaced. If you want to append the value to the previous value, specify it to true. |
+ | |||
+ | =Version History= | ||
+ | |||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | {{ZUMLReferencePageFooter}} |
Latest revision as of 09:19, 6 May 2022
Syntax:
<?header name="..." value="..." [append="true|false"] [if="..."] [unless="..."] ?>
Since 5.0.2
Specifies a response header. It has the same effect as the invocation of Execution.setResponseHeader(String, String).
name
Required
Specifies the name of the header, such as Pragma
.
value
Required, EL allowed
Specifies the value of the header. The value could be an instance of string or Date (java.util.Date).
append
Optional, EL allowed Default: false
Specifies whether to append a response header or to replace (aka., set). By default, it is false. It means that the previous header with the same name will be replaced. If you want to append the value to the previous value, specify it to true.
Version History
Version | Date | Content |
---|---|---|