When a URL is clicked or a form is submitted, the browser sends the action to an HTTP server, which in turn calls the WebPublisher servlet. If action is specified, the servlet calls the provider and then uses a template to generate the resulting HTML page. If no template is specified, start.htt is used.
To specify a template, include the word “merge” accompanied by the name of the template to be used.
Templates always end with an .htt extension, but the extension is not included when specifying the name of the template. For example, “. . .&merge=liblist” uses the liblist.htt template file to generate the HTML that will be sent back to the browser.
See the Template Documentation and the following two examples for more information on templates.
<A href="/servlet/webpub?Provider.name=GWDoc&action= Library.List&merge=liblist">Login</A>
<FORM method=post action=/servlet/webpub> <INPUT type=hidden name="Provider.name" value="GWDoc"> <INPUT type=hidden name="merge" value="liblist"> <INPUT type=hidden name="action" value="Library.List"> <INPUT type=submit name="submit" value="Submit"> </FORM>
Provider.name is not necessary in the previous example since GWDoc is the default provider for the WebAccess servlet.