Fork me on GitHub
Edit on GitHub << back to Tag Reference

else

Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.

Description

Perform basic condition flow. else tag can be only used with if tag or elseif tag.

Else tag

Attributes

Dynamic Attributes Allowed:

false

Name

Required

Default

Evaluated

Type

Description

performClearTagStateForTagPoolingServers false false false Boolean Whether to clear all tag state during doEndTag() processing (if applicable)

Examples

  <s:if test="%{false}">
      <div>Will Not Be Executed</div>
  </s:if>
  <s:elseif test="%{true}">
      <div>Will Be Executed</div>
  </s:elseif>
  <s:else>
      <div>Will Not Be Executed</div>
  </s:else>