Static content base URL property

Official Content
This documentation is valid for:
Indicates a path to the folder where the application's static content  (javascript, images, cascade stylesheets and other) is located. It can be a relative path (eg.: /static) or a URL (eg.: https://example.com/static).

Scope

Generators: Java, .NET, .NET Core

Description

Notes:

  • If the value is not indicated in this property, the web server root is assumed (directory “/”).

  • If the image path does not begin with a slash  (“/”), the servlet concatenates the following to build the reference in the html generated: the url to the web server root  + what was specified in this property + what was specified in the properties of the image inserted in the web object; whether they are fixed (i.e.: they have been included with insert/picture) or variable (i.e.: they are loaded with the loadbitmap function). Thus, the path must not be repeated in design and in the property so that the latter is correctly loaded.  

  • If the image path begins with a slash (“/”) it is assumed that it is indicating an absolute path and the property does not apply. 

  • If you want the reference to be absolute instead of relative, for example, you can indicate http://server/static.

Values  

The default value in Java is '/static', and in .NET the default is empty

If a directory called “static” is created under the web application's folder, and all the required images and other static content are copied to this directory, and only the image name is specified in design-time of the web objects, then we should include ‘/static’ in this property.

How to apply changes

To apply the corresponding changes when the property value is configured, execute a Build with this Only of the object.