Web Connection User's Guide

Using the AbtHtmlFileWrapper subclass

HTML File Wrappericon

Now you can use the HelloFileWrapper class to build a Web Connection part that uses an instance of the file wrapper. This part will substitute two text strings for the attributes HelloText and GoodbyeText of the file wrapper HelloFileWrapper1.

  1. In the VisualAge Organizer, create a new part. For Part type, select Web Connection part.
  2. Open the Composition Editor on the new part. You should see a single subpart, a Page.
  3. Delete the Page part.
  4. Select Add Part from the Options menu.
  5. Place the HTML file wrapper, HelloFileWrapper1, within the free-form surface.
  6. Go to the Web Connection category and select Text. Place the Text part within the free-form surface.
  7. Open the settings of the Text part. Set the partName to read TextforHello. Set the object to read Hello, World!
  8. Make a connection from the HelloText attribute of the HelloFileWrapper1 part to the string attribute of the Text part.
  9. Go to the Web Connection category and select Text. Place the Text part within the free-form surface.
  10. Open the settings of the Text part. Set the partName to read TextforBye. Set the object to read Goodbye, World!
  11. Make a connection from the GoodbyeText attribute of the HelloFileWrapper1 part to the string attribute of the Text part.
  12. Save the part. Select the test button, Test icon, to test the part.
  13. After the page loads, the text Hello, World! and Goodbye, World! appears in your Web browser at the location of the substitution tags that you specified in the HTML document.


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