When (Apache Tomcat 10.1.57 API Documentation)
Description: declaration: package: org.apache.jasper.tagplugins.jstl.core, class: When

# Class When

java.lang.Object
org.apache.jasper.tagplugins.jstl.core.When

All Implemented Interfaces:
  `TagPlugin`

public final class When extends Object implements TagPlugin
Tag plugin for the `<c:when>` JSTL tag.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `When()`
  Constructs a new When tag plugin.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `doTag(TagPluginContext ctxt)`
  Generate codes for a custom tag.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### When

    public When()
    Constructs a new When tag plugin.

- ## Method Details

  - ### doTag

    public void doTag(TagPluginContext ctxt)
    Description copied from interface: `TagPlugin`
    Generate codes for a custom tag.
    Specified by:
      `doTag` in interface `TagPlugin`
    Parameters:
      `ctxt` - a TagPluginContext for accessing Jasper functions