Jstl Xml Choose Tag
# ``, ``, `` Tags
[!(#)JSP Standard Tag Library](#)
The `` tag has the same functionality as the Java `switch` statement. The `switch` statement has `case` statements, while the `` tag has `` tags. The `switch` statement has a `default` statement, while the `` tag has an `` tag.
### Syntax Format
```jsp
<x:when select="">
...
<x:when select="">
...
...
...
...
### Attributes
* `` has no attributes.
* The attributes of `` are given in the table below.
* `` has no attributes.
Attributes of the `` tag:
| **Attribute** | **Description** | **Required** | **Default Value** |
| :--- | :--- | :--- | :--- |
| select | Condition | Yes | None |
## Example
```jsp
JSTL x:choose Tag
YouTip