Back Forward when JavaServer Page tag

JavaServer Pages tags

Use the when tag to conditionalize a segment of HTML or XML, whether used for display, user input or correspondence. Use it to control whether stream processing includes, or omits, parts of HTML text under conditions that you determine. You can base the conditions on Boolean values returned by properties, Java methods, or when condition rules.

  Examples

  Complete syntax

  Referencing a when condition rule with the name attribute

  The $mode-input and $input-enabled keywords

  Using when tags with choose

  Using a When rule

  Using PublicAPI methods

  Evaluating a Java expression

  Working with more than one condition

Up JavaServer Page Tags