BBjJettyContextConfiguration::setPageExtensions


Description

In BBj 18.20 and higher, this method sets the extensions that are associated with BBJSP Pages and will be processed by the page processor.

For example, this can be useful to allow an existing site based on .html files to be processed as a BBJSP Page, removing the need to rename the existing files and to relink everything. Existing .html pages could then be enhancement by BBJSP Tag Libraries.

Syntax

Return Value

Method

void

setPageExtensions(string extension)

Parameters

Variable

Description

extension

A comma-separated list of extensions or null to disable the command engine.

Return Value

None.

Remarks

The extensions used to map requests arriving in Jetty to the BBJSP Page generation engine for processing the request.

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!.setPageExtensions("bbjsp")
root!.setCommandExtensions("cmd")

condig!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration

BBjJettyContextConfiguration::getPageExtensions()