Sun Java System Web Server 7.0 Developer's Guide

Procedure To Add a New Tag into the Server

  1. Add 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, it would be:

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

  2. Add another 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"