3.0 Template Tasks

Templates give you the ability to generate HTML or other text-based documents that incorporate data provided by the servlet. By modifying the templates you can customize WebAccess to meet your organization's needs. Templates consist of text (such as HTML) embedded with special template commands. While this document uses HTML examples, note that XML or any other text-based documents can be generated.

The GroupWise WebAccess interface is made up of HyperText Template (.htt), include files (.inc), and applet files (.applet). These files are HTML files that use Template Keywords.

This section covers the following:

The interface has some Java-enhanced features that are applied with the use of the applets. These features include the address book, calendar, and spell checker. The features are available in both HTML and Java-enhanced modes.The default setup is to use the Java-enhanced mode. The user is also able to toggle back and forth between HTML and Java-enhanced modes from the interface of the these features. Whichever was the last mode (HTML or Java) is remembered the next time the user logs in.

GroupWise WebAccess utilizes HTML frames. The webaccess.htt file (code sniplet below) is a base HTML frame file that calls other HTML files with template extensions .htt or .inc, such as caption.htt.

<FRAMESET rows="{VAR captsize},*" border="0">
  <FRAMESET cols="*,0" border="0">
    <FRAME src="/servlet/webacc?User.context={VAR   
                         User.context}&merge=caption"
           FrameBorder=0
           MarginHeight=0
           MarginWidth=0
           Scrolling="No"
           Name="caption">
    <FRAME  src="/servlet/webacc?User.context={VAR
                            User.context}&merge=mcblank"
           FrameBorder=0
           MarginHeight=0
           MarginWidth=0
           Scrolling="No"
           Name="javamc">
  </FRAMESET>
  <FRAME src="/servlet/webacc?User.context={VAR
                           User.context}&merge=maindoc"
         FrameBorder=0
         MarginHeight=0
         MarginWidth=0
         Scrolling="No"
         Name="maindoc">
</FRAMESET>

The following shows the interface of the previous code as well as nested information pulled from other files.

Figure 3-1 Frames With Embedded Files

To change the interface, you need access rights on the Web server to the template files as outlined in Review Prerequisites.

The following sections show graphics of the interface in relation to the template files and how the files are called and nested from other files. This will help you find the file you need to modify to change the interface to meet your needs.

For a table that contains a brief description of template files and references to related .htt, .inc, or .applet files, see Template Concepts.