Lucee Tag Reference
Tag <CFLOCATION>
Opens a CFML page or HTML file. For example, you might use cflocation to specify a standard
message or response that you use in several applications. Use the addToken attribute to verify
client requests.
Body
Dieses Tag darf keinen Body haben.
Beispiel
<cflocation [addtoken="boolean"] [statuscode="number"] url="string">
Diese tag kann auch innerhalb von cfscript verwendet werden
<cfscript> location [addtoken="boolean"] [statuscode="number"] url="string"; </cfscript>
Attribute
Die Attribute für dieses Tag sind fest vorgegeben. Ausser den nachfolgend angegebenen Attributen dürfen keine weiteren verwendet werden.
| Name | Typ | Required | Beschreibung |
|---|---|---|---|
| addtoken | boolean | No | Yes or No. clientManagement must be enabled, see cfapplication. Yes appends client variable information to the URL you specify in the url. |
| statuscode | number | No | statuscode used for the redirect (301 or 302) |
| url | string | Yes | The URL of the HTML file or CFML page to open. |