|
NOTE:
These slides have not been updated since 2003. They have been superseded by the book
Anders Møller and Michael Schwartzbach, February 2006 |
|
| INTERACTIVE WEB SERVICES WITH JAVA |
|
import dk.brics.jwig.runtime.*;
public class Today extends Service {
int counter = 0;
synchronized int next() { return ++counter; }
public class View extends Page {
public void main() {
exit [[ <html><head><title>JWIG</title></head><body>
Today is <{ return new Date(); }>
<p/>
You are visitor number <{ return next(); }>
</body></html> ]];
}
}
}
|
|
| COPYRIGHT © 2002-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH |
|