9.3 Specifying a Template

When a URL is clicked or a form is submitted, the browser sends the action to an HTTP server, which in turn calls the WebAccess 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, login.htt is used.

For more information about how to handle errors, see

For more information on templates, see the Template Documentation and the following two examples:

Example 1

<A href="/servlet/webacc?Provider.name=GWAP&action= User.Login&User.id=jdoe&User.password=skiutah&merge=webacc">Login</A>

Example 2

<FORM method=post action=/servlet/webacc>
     <INPUT type=hidden name="Provider.name" value="GWAP">
     <INPUT type=hidden name="merge" value="webacc">
     <INPUT type=hidden name="action" value="User.Login">
   User Id:
   <INPUT type=input name="User.id" value=""><BR>
   Password:
   <INPUT type=password name="User.password" value=""><BR>
</FORM>

Since GWAP is the default provider for the WebAccess servlet, Provider.name is not necessary in the previous example.

9.3.1 Specifying a Template If an Error Occurs

  • To specify that a different template be used if an error occurs during processing, include the word “error” accompanied by the name of the template to be used. For example

    . . .&merge=webacc&error=errfile. . .