Frank configurations can have front-end code like ordinary Java
applications. To add front-end code to a Frank configuration,
add a folder named
webcontent and put the HTML files, CSS
This can be illustrated by adding a welcome page to the NewHorizons configuration developed in this chapter. Please do the following:
NewHorizonsfolder, add a subfolder
webcontent, add a file
index.htmlwith the following contents:
<h1>Welcome to New Horizons!</h1>
Start the configuration using the Frank!Runner. Then browse to http://localhost/webcontent/NewHorizons. The browser should show the text “Welcome to New Horizons!”.
The requested URL did not contain the text
index.html, but the Frank!Framework nevertheless served that file. When the Frank!Framework gets a HTTP request
webcontent/name-of-a-configuration, it is automatically interpreted as a request for the welcome file: the
index.html file in folder
webcontent of the referenced configuration.
Each configuration in a Frank application can have a
webcontent folder with front-end code. Each configuration has a different name and has its front-end code served at a different URL
Each configuration can have a
webcontent folder no matter the class loader type (property
configurations.MyConfig.classLoaderType), see subsection Frank!Framework Properties.