A sample Enhydra application. A simple calculator is simulated using
a single presentation object. Every time a button is pressed this
presentation object is notified via the querry string
"?button=...".
The responsability of this object is to emit an HTML string that
shows the current state of the calculator. If a button is being
passed to us in the query string, we process that button first,
then show the current state of the calculator.
Because the SessionData object is being used to store the state of
the calculator, multiple users may use the calculator simultaneously
"for free".
This method is called to process a button push. If no button
was sent in the URL, do nothing.
author: Andy John andy@enhydra.org |