Tag Summary |
default |
Includes the body content if the request
client classification falls into the "default" category, i.e. the request user-agent
is not matched by any items in WEB-INF/client-classifications.xml, or is matched by
the classification named "default".
For example, suppose your WEB-INF/client-classifications.xml file looks like
<classifications>
<classification name="abc">
<useragent value="ua_abc" />
</classification>
<classification name="default">
<useragent value="ua_def" />
</classification>
</classifications>.
If your request has user-agent "ua_def" or anything other than "ua_abc",
then this tag will render its body content. If not, this tag will not render anything.
|
not-default |
Includes the body content if the request
client classification does not fall into the "default" category, i.e. the request user-agent
is matched by some item in WEB-INF/client-classifications.xml and is not matched by
the classification named "default".
For example, suppose your WEB-INF/client-classifications.xml file looks like
<classifications>
<classification name="abc">
<useragent value="ua_abc" />
</classification>
<classification name="default">
<useragent value="ua_def" />
</classification>
</classifications>.
If your request user-agent is "ua_abc", then this tag will render its body
content. If not, this tag will not render anything.
|
recognized |
Includes the body content if the request
client has been explicitly mapped to a classification (albeit perhaps to the default).
For example, suppose your WEB-INF/client-classifications.xml file looks like
<classifications>
<classification name="abc">
<useragent value="ua_abc" />
</classification>
<classification name="default">
<useragent value="ua_def" />
</classification>
</classifications>.
If your request has user-agent "ua_def" or "ua_abc", then this tag will render its body
content. If not, this tag will not render anything.
|
not-recognized |
Includes the body content if the request
client has not been explicitly mapped to a classification (to default or not).
For example, suppose your WEB-INF/client-classifications.xml file looks like
<classifications>
<classification name="abc">
<useragent value="ua_abc" />
</classification>
<classification name="default">
<useragent value="ua_def" />
</classification>
</classifications>.
If your request has a user-agent other than "ua_def" or "ua_abc", then this tag will render its body
content. If not, this tag will not render anything.
|
when |
Includes the body content if the request
client classification matches the supplied client attribute. For example,<when client="iphone" > hello, IPhone user </when>
renders the given content if the request user-agent has been mapped to "iphone"
in WEB-INF/client-classifications.xml.
|
when-not |
Conditionally includes the body content if the request
client classification does not match the supplied client attribute.
For example,
<when-not client="iphone" > hello, non-IPhone user </when>
renders the given content if the request user-agent has not been mapped to "iphone"
in WEB-INF/client-classifications.xml.
|