Introduction to Water Programming

This Site is intended to provide helps to Water language programmers around the world through technical examples, informational articles, and personal assistance.

The following examples are meant to be a quick Getting Started sort of tutorial using the Steam Free Version or the IDE. (If you are using the Free Version, be sure to set the output to "Rendered HTML".)

Example 7. A Server Example - With <start /> method

In order to be able to access the default page of your Water server, you need to include a <start /> method in the class you intend to use as your server.

Water:
<defclass myapp >
<defmethod start>
<H1>Main Page</H1>
</defmethod>
</defclass>

<server myapp port=8181 />

Access this page with http://localhost:8181/.

There are other elements needed to help flesh out more full-featured servers, but this is good for many things to get a programmer started experimenting with web services.

Go back to go to the next example.

©Copyright 2004, Mr. Merrick J. Stemen. All rights reserved.