BBjspServletConfiguration::setUser (Deprecated)

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

Description

In BBj 18.10 and higher, this method sets the user for the BBj process running the BBjspServlet.

Syntax

Return Value

Method

void

setUser(string user)

Parameters

Variable

Description

user

The Username.

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!.setUser("richard")

config!.saveConfig()

See Also

BBjspServletConfiguration