Name

<c:remove>

Synopsis

The <c:remove> action removes a scoped variable. If no scope is specified, the variable is removed from the first scope where it’s found; it scans the scopes in the order page, request, session, and application, otherwise from the specified scope. If the variable isn’t found, this action does nothing.

Syntax

<c:remove var="var" [scope="page|request|session|application"] />

Attributes

Attribute name

Java type

Dynamic value accepted

Description

var
String

No

The name of the variable to remove

scope
String

No

The variable scope

Example

<c:remove var="authenticationToken" scope="session" />

Get JavaServer Pages, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.