By the way, the documentation at http://virtualschool.edu/wap doesn't
mention it but I built JSP so that I could implement web applications as
state machines whose states are Page instances instead of as files linked
by embedded html links as in JSP.

This is a *big* win. The most immediately obvious advantage is that pages
are full-fledged objects, so invalid links between them are reported at
compile time. See the "The Problem" link for further advantages.

On Friday, June 22, 2001, at 01:33 PM, Brad Cox wrote:

> Exactly such a system is at http://virtualschool.edu/wap.
>
> But notice that the servlet is a single class per application. It is built
> by subclassing AbstractServlet, after which it serves unmodified for the
> application as a whole. E.g. you don't "add" doGet() methods since the one
> in AbstractServlet supports all pages.
>
> To add pages, you define a single abstract Page class as a subclass of
> AbstractClass, to  define the standard look and feel for the site, then
> add pages by building subclasses of that.
>
> On Friday, June 22, 2001, at 12:14 PM, Stuart Hemmings wrote:
>
>> Does anyone have a viable alternative to implementing a 'state machine'
>> in a
>> Java Servlet. The reasons for the request is to find a suitable method by
>> which the size of the doGet and doPost methods will reach as new code is
>> added to the Servlet and it permits new storyboards (States/actions) to
>> be
>> added.
>>
>>      Stuart Hemmings
>>      Imagine Broadband Limited
>>
>> p    Golden Cross House, 8 Duncannon Street, London, WC2N 4JF, United
>> Kingdom
>> t    +44 (0) 2 07 831 7890
>> f    +44 (0) 2 07 484 5136
>> m   +44 (0) 7803 034 777
>> e    [EMAIL PROTECTED]
>> w   www.imaginebroadband.com
>> This e-mail and any attachments are confidential and may also be
>> privileged.
>> If you are not the intended recipient (or have received this e-mail in
>> error) please  notify the sender immediately and destroy this e-mail. Any
>> unauthorised copying, disclosure or distribution of the material in this
>> e-mail is strictly forbidden.
>>
>> ___________________________________________________________________________
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>> body
>> of the message "signoff SERVLET-INTEREST".
>>
>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> Resources: http://java.sun.com/products/servlet/external-resources.html
>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
---
For industrial age goods there were checks and credit cards.
For everything else there is http://virtualschool.edu/mybank
Brad Cox [EMAIL PROTECTED] 703 361 4751
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to