Name | Date | Size | ||
---|---|---|---|---|
.. | 01-Mar-2013 | 9 | ||
AgentClient.xotcl | H A D | 12-Oct-2007 | 4.3 KiB | |
Counter.README | H A D | 14-Oct-2007 | 1.9 KiB | |
Counter.xotcl | H A D | 22-Mar-2010 | 1.5 KiB | |
Counter2.xotcl | H A D | 22-Mar-2010 | 2.2 KiB | |
Counter3.xotcl | H A D | 22-Mar-2010 | 1.6 KiB | |
Counter4.xotcl | H A D | 22-Mar-2010 | 1.9 KiB | |
examples.README | H A D | 14-Oct-2007 | 2 KiB | |
FormsWithState.xotcl | H A D | 14-Oct-2007 | 6.7 KiB | |
MC.xotcl | H A D | 22-Mar-2010 | 6.5 KiB | |
Receiver.xotcl | H A D | 12-Oct-2007 | 660 | |
securePlaceDemo.xotcl | H A D | 12-Oct-2007 | 2.8 KiB | |
univ/ | H | 01-Mar-2013 | 8 |
Counter.README
1* $Id: Counter.README,v 1.1 2004/05/23 22:50:39 neumann Exp $ 2* 3* Variationen des Counter-Themas im ActiWeb: 4* (Zeilenangaben ohne Kommentare und Leerzeilen) 5* 6* 7 81) Counter.xotcl (22 Zeilen) 9 10 Die Klasse Counter wird als Spezialisierung von HtmlDocument 11 definiert ("Ein Dokument mit weiteren Methoden") 12 13 Aufruf: 14 http://localhost:8090/counter-1.html 15 http://localhost:8090/counter-2.html 16 17 182) Counter2.xotcl (32 Zeilen) 19 20 Die Klasse Counter wird als Spezialisierung von WebAgent 21 definiert, der ein plain/text interface besitzt. Zus�tzlich 22 wird eine Web-Facade definiert, die fuer die HTML-spezifische 23 Pr�sentation des WebAgenten sorgt. 24 25 Aufruf: 26 http://localhost:8091/htmlUI+invoke+c1 27 http://localhost:8091/htmlUI+invoke+c2 28 29 303) Counter3.xotcl (28 Zeilen) 31 32 Die Klasse Counter wird v�llig unabh�ngig von jeder 33 Web-Nutzung definiert (Sachmodell). Als Spezialisierung 34 dieser Counter-Klasse wird die Klasse Web-Counter definiert, 35 die auch von HTML-Document erbt. Diese Klasse ist fuer 36 die HTML-Aufbereitung zust�ndig. Es werden Instanzen von 37 Web-Counter erzeugt. 38 39 Aufruf: 40 http://localhost:8093/c1 41 http://localhost:8093/c2 42 43 444) Counter4.xotcl (33 Zeilen) 45 46 Die Klasse Counter wird v�llig unabh�ngig von jeder 47 Web-Nutzung definiert (Sachmodell). Ebenso unabh�ngig 48 von der Web-Nutzung wird PersistentCounter als 49 spezialisierte Counter-Klasse definiert. Von diesen persistenten 50 Countern werden Instanzen gebildet (web-unabhaengig). 51 52 Als weitere Instanzen werden Proxy-Objekte erzeugt, 53 die f�r die HTML-Aufbereitung zust�ndig sind, und die 54 hereinkommende Requests an die im "Hintergrund" existierenden 55 eigentlichen Objekte weitergeben, und deren Ergebnisse 56 entsprechend aufbereiten. Es werden nur die Proxy-Objekte 57 exportiert, nur diese sind ueber den Web-Server ansprechbar. 58 59 Aufruf: 60 http://localhost:8094/wc1 61 http://localhost:8094/wc2 62
examples.README
1* $Id: examples.README,v 1.1 2004/05/23 22:50:39 neumann Exp $ 2* 3* This directory contains several simple ActiWeb introductory examples 4* 5 6* 7* 4 Variations of the counter theme: 8* 9 101) Counter.xotcl (22 lines) 11 12 The class counter is a special HtmlDocument that is made active 13 by adding methods to the document. 14 15 After starting the program, you can call it from your web browser: 16 http://localhost:8090/counter-1.html 17 http://localhost:8090/counter-2.html 18 19 202) Counter2.xotcl (32 lines) 21 22 The Class Counter is a special WebAgent, with a plain/text 23 interface. Additionally it has an HTML Facade that shields 24 the sub-system and allows to access the web agent with an 25 HTML presentation. 26 27 The plain/text interface is: 28 http://localhost:8091/c1 29 http://localhost:8091/c2 30 The web facades are: 31 http://localhost:8091/web-c1 32 http://localhost:8091/web-c2 33 34 353) Counter3.xotcl (28 lines) 36 37 This example demonstrates how an existing business logic (here: 38 a small Counter class) can be enhanced with a web representation. 39 A class WebCounter inherits from Counter and from HtmlDocument. 40 The two web counter instances are accessible via: 41 http://localhost:8093/c1 42 http://localhost:8093/c2 43 44 454) Counter4.xotcl (33 lines) 46 47 The Counter class and a derived persistent counter are 48 independent of any web usage. Two instances c1 and c2 -- that 49 are inpendent from the usage as web counters -- are created. 50 51 Two proxy object w1 and w2 handle the HTML decoration and forward 52 the calls to the persistent counter instances c1/c2 as the real 53 subjects for handling the calls. Only the proxies are exported, because 54 c1/c2 can not be reached via the web server. 55 56 Calls: 57 http://localhost:8094/wc1 58 http://localhost:8094/wc2 59 60* 61* A simple Multiple Choice Test: MC.xotcl 62* 63 64 The multiple choice test implements a simple test and evaluation 65 and a web facade for the test. 66 67 Calls: 68 http://localhost:8092/Gustaf.html 69 http://localhost:8092/Uwe.html 70 71 72