Specifying a Base URL

How to:

If you want to link to files, images, and Java files, but do not know their full, physical URLs, you can specify a default location where the browser searches for relative URLs.

To specify a default URL location, use the SET BASEURL command. Using SET BASEURL puts <BASE HREF="url"> into the HTML file that WebFOCUS generates. When a report is run, the specified directory is searched for the HTML files, graphics files, and Java applet CLASS files that are called by the generated webpage.

For more details on specifying URLs, see Navigating Within an HTML Report.


Top of page

x
Syntax: How to Specify a Base URL
SET BASEURL=url

where:

url
Is the default location where the browser searches for relative URLs specified in the HTML documents created by your application.

The URL must begin with http:// and end with a closing delimiter (/).



Example: Specifying a Base URL

The following illustrates how to specify a base URL:

SET BASEURL=http://host[:port]/ibi_apps/ibi_html/

where:

host
Is the host name where the WebFOCUS Web application is deployed.
port
Is the port number (specified only if you are not using the default port number) where the WebFOCUS Web application is deployed.

If you are including a graphic image in your report that is stored in the specified base URL, you can add the following declaration to your StyleSheet instead of typing the entire URL:

TYPE=HEADING, IMAGE=ib_logo.gif, ..., $

Note: If the URL is at a remote website, it may take longer to retrieve. Whenever possible, store graphic image files on your WebFOCUS system.


WebFOCUS