Dynamic Web Development with Seaside

4.2.4Registering the Application

Before you can access the counter application from your web browser, you must register it with Seaside. Type the following code into a Transcript or Workspace and then type CTRL-d or use the "doit" menu item. Afterwards, make sure to commit your code.

WebCounter registerAsApplication: 'WebCounter'.

Note that this expression can also be added in the class initialize method which is invoked at the time the class is loaded in memory as shown below.

WebCounter class>>initialize
self registerAsApplication: 'WebCounter'

Now you can launch the application in your web browser by visiting http://localhost/seaside/WebCounter, see Figure 36.

A simple counter

Copyright © 19 March 2024 Stéphane Ducasse, Lukas Renggli, C. David Shaffer, Rick Zaccone
This book is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 license.

This book is published using Seaside, Magritte and the Pier book publishing engine.