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

# Class Redirect

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

All Implemented Interfaces:
  `TagPlugin`

public class Redirect extends Object implements TagPlugin
Tag plugin for the JSTL <c:redirect> tag. Generates code to perform an HTTP redirect to the specified URL with optional query parameters.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Redirect()`
  Default constructor.

- ## 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

  - ### Redirect

    public Redirect()
    Default constructor.

- ## 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