BBjJavaServletConfiguration::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

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
declare BBjJavaServletConfiguration servletConfig!
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()
servletConfig! = root!.getJavaServlet("com.wibble.SomeServlet","/*")
servletConfig!.setParameter("param","value")
config!.saveConfig()

See Also