BBjspServletConfiguration::addParam (Deprecated)

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

Description

In BBj 17.0 and higher, this method adds a parameter to the servlet which can be accessed at runtime by the servlet.

Syntax

Return Value

Method

void

addParam(string name, string value)

Parameters

Variable

Description

name

the name of the parameter

value

the value of the parameter

Return Value

None.

Remarks

None.

Example

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

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

servletConfig! = root!.getBBjspServlet("/myservlet")

servletConfig!.addParam("param","value")

config!.saveConfig()

See Also

BBjspServletConfiguration