BBjJettyContextConfiguration::getParameterValue


Description

In BBj 15.0 and higher, this method returns the value bound to the specified parameter.

Syntax

Return Value

Method

String

getParameterValue(string name)

Parameters

Variable

Description

name

the name of the parameter

Return Value

the value for the specified parameter

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!
declare BBjJettyContextConfiguration bbjsp!
declare BBjVector names!
declare BBjNumber sz

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

names! = root!.getParameterNames()

sz = names!.size()
if (sz) then
    for i = 0 to sz-1
        name$ = names!.get(i)
        value$ = root!.getParameterValue(name$)
        print name$ + " = " + value$
    next i
endif

See Also

BBjAPI

BBjJettyContextConfiguration