BBjspCommandResult::addParameter (Deprecated)

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

Description

In BBj 16.0 and higher this method adds a parameter to the URL used in the the forwarding from this BBjspCommandResult.

Syntax

Return Value

Method

void

addParameter(string name, string value)

Parameters

Variable

Description

name

the name of the parameter

value

the value for the parameter

Return Value

None.

Remarks

None.

Example

class public LogonCommand

    field public BBjspWebRequest request!
    field public BBjspWebResponse response!
    field public BBjspWebSession session!

    method public BBjspCommandResult execute(BBjspCommandContext context!)

        declare BBjspCommandResult result!
        #request! = context!.getRequest()
        #response! = context!.getResponse()
        #session! = request!.getSession()

        result! = context!.getResult()
        result!.setForward("success")
        result!.addParameter("param","value")

        methodret result!
    methodend

classend

See Also