BBjJettyContextConfiguration::setParameter


Description

In BBj 15.0 and higher, this method sets the value bound to the named parameter. If a value exists then it is replaced with the new value

Syntax

Return Value

Method

void

setParameter(string name, string value)

Parameters

Variable

Description

name

the name of the parameter

value

the value for the parameter

Return Value

None.

Remarks

Parameters stored in the context are accessible to all servlets running within the context. Parameters are name and value pairs of Strings

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()

root!.setParameter("param","value")

See Also

BBjAPI

BBjJettyContextConfiguration