Web Connection User's Guide


Setting up the HTML File Wrapper

Generate the HTML code and place substitution tags where Smalltalk should provide output. The default substitution tag area is <% %>. Users can override the default substitution tag by changing the defaultStartMarker and defaultEndMarker variables of the AbtHtmlFileScanner class. For example:

AbtHtmlFileScanner 
    defaultStartMarker: '<:' ;
    defaultEndMarker:   ':>'.

When you generate the HTML file wrapper, the substitution area becomes a VisualAge Smalltalk attribute. For example:

<HTML>
<HEAD>
</HEAD>
<BODY>
<%HelloText%>
<%VarText%>
</BODY>
</HTML>

When you generate the HTML file wrapper for the above HTML document, hello.htm, the resulting class contains two attributes, HelloText and VarText . You can override the default attribute names from the HTML File Wrapper Generator window.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]