resetAttribute

Description

This mobile device JSP function removes the named attribute from request and PageContext.

Note: It is a good coding practice to reset an attribute before using it in the code.

Syntax

public void resetAttribute(String name)

public void resetAttribute(String name, Object value)

Input Parameters

name - Required. The name of the request attribute that needs to be reset.

value - Optional. The value of the request attribute that the attribute should be reset to.

Example

The following example shows how the restAttribute JSP function removes the named attribute from request and PageContext:
resetAttribute("TaskList","");