BBjspWebRequest::removeAttribute (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 16.0 and higher, this method removes an attribute from this request. This method is not generally needed as attributes only persist as long as the request is being handled.

Syntax

Return Value

Method

void

removeAttribute(string name)

Parameters

Variable

Description

name

a String specifying the name of the attribute to remove

Return Value

None.

Remarks

None.

Example

This example demonstrates how this works in a BBJSP servlet

class public FooServlet

  field private BBjspWebRequest request!
  field private BBjspWebResponse response!
  field private BBjspWebSession session!
  
  method public void service(BBjspServletContext context!)
       
    #request! = context!.getRequest()
    #response! = context!.getResponse()

    #response! = context!.getResponse()

    #request!.removeAttribute("foo")
    
    #response!.sendRedirect("/path/to/another/page.bbjsp")
    
  methodend

classend

See Also