|
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".
<p/>
For example, suppose your WEB-INF/client-classifications.xml file looks like
<pre>
<classifications>
<classification name="abc">
<useragent value="ua_abc" />
</classification>
<classification name="default">
<useragent value="ua_def" />
</classification>
</classifications>
</pre>
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".
<p/>
For example, suppose your WEB-INF/client-classifications.xml file looks like
<pre>
<classifications>
<classification name="abc">
<useragent value="ua_abc" />
</classification>
<classification name="default">
<useragent value="ua_def" />
</classification>
</classifications>.
</pre>
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).
<p/>
For example, suppose your WEB-INF/client-classifications.xml file looks like
<pre>
<classifications>
<classification name="abc">
<useragent value="ua_abc" />
</classification>
<classification name="default">
<useragent value="ua_def" />
</classification>
</classifications>.
</pre>
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).
<p/>
For example, suppose your WEB-INF/client-classifications.xml file looks like
<pre>
<classifications>
<classification name="abc">
<useragent value="ua_abc" />
</classification>
<classification name="default">
<useragent value="ua_def" />
</classification>
</classifications>.
</pre>
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.
<p/>
For example,
<pre>
<when client="iphone" >
hello, IPhone user
</when>
</pre>
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.
<p/>
For example,
<pre>
<when-not client="iphone" >
hello, non-IPhone user
</when>
</pre>
renders the given content if the request user-agent has not been mapped to "iphone"
in WEB-INF/client-classifications.xml.
|
Copyright © 2010, Oracle. All rights reserved.