File: examples.README

package info (click to toggle)
xotcl 0.85.3-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,832 kB
  • ctags: 2,734
  • sloc: ansic: 18,065; tcl: 1,256; makefile: 653; sh: 430
file content (71 lines) | stat: -rw-r--r-- 2,080 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
* $Id: s.examples.README 1.5 01/03/23 22:00:32+01:00 neumann@somewhere.wu-wien.ac.at $
*
* This directory contains several simple ActiWeb introductory examples
*

*
* 4 Variations of the counter theme:
*

1) Counter.xotcl (22 lines)
  
   The class counter is a special HtmlDocument that is made active
   by adding methods to the document.

   After starting the program, you can call it from your web browser:
      http://localhost:8090/counter-1.html
      http://localhost:8090/counter-2.html


2) Counter2.xotcl (32 lines)

   The Class Counter is a special WebAgent, with a plain/text 
   interface. Additionally it has an HTML Facade that shields
   the sub-system and allows to access the web agent with an
   HTML presentation.
   
   The plain/text interface is:
      http://localhost:8091/c1
      http://localhost:8091/c2
   The web facades are:
      http://localhost:8091/web-c1
      http://localhost:8091/web-c2
   

3) Counter3.xotcl (28 lines)

   This example demonstrates how an existing business logic (here:
   a small Counter class) can be enhanced with a web representation.
   A class WebCounter inherits from Counter and from HtmlDocument.
   The two web counter instances are accessible via:
      http://localhost:8093/c1
      http://localhost:8093/c2


4) Counter4.xotcl (33 lines)

   The Counter class and a derived persistent counter are 
   independent of any web usage. Two instances c1 and c2 -- that
   are inpendent from the usage as web counters -- are created.

   Two proxy object w1 and w2 handle the HTML decoration and forward
   the calls to the persistent counter instances c1/c2 as the real
   subjects for handling the calls. Only the proxies are exported, because
   c1/c2 can not be reached via the web server.

   Calls:
      http://localhost:8094/wc1
      http://localhost:8094/wc2

*
* A simple Multiple Choice Test:  MC.xotcl
*

   The multiple choice test implements a simple test and evaluation
   and a web facade for the test.

   Calls:
      http://localhost:8092/Gustaf.html 
      http://localhost:8092/Uwe.html