Sun Java System Web Server 7.0 Update 7 NSAPI Developer's Guide

Loading the New Tag into the Server

After creating the shared library that defines the new tag, you load the library into the Web Server. Add the following directives to the configuration file magnus.conf:

An Init directive whose fn parameter is load-modules and whose shlib parameter is the shared library to load. For example, if you compiled your tag into the shared object install-dir/hello.so, the Init directive would be:


Init funcs="mytag,mytag_init" shlib="install-dir/hello.so" fn="load-modules"
 

An Init directive whose fn parameter is the initialization function in the shared library that uses shtml_add_tag to register the tag. For example:


Init fn="mytag_init"