YouTip LogoYouTip

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

Books Info:

Padam History ZARA 100 Great Mistry NUHA 2000 Book is written by ZARA Book is written by NUHA Unknown author. The result is as follows: BOOKS INFO: Book is written by ZARA * * JSP Standard Tag Library](#)
← Jstl Xml Transform TagJstl Xml Foreach Tag β†’