O'Reilly logo

Practical Internet Groupware by Jon Udell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Kit for Chapter 10

The GroupCal servlet kit (http://udell.roninhouse.com/examples/GroupCal.zip) includes the Java code for the GroupCal servlet, plus HTML templates, configuration files, and documentation (http://udell.roninhouse.com/GroupCalDoc.htm) that explains how to run the servlet in either of two hosts: the open-source Acme.Serve or Sun’s Java Web Server.

By default, GroupCal will not try to inject “todo” information into calendar views, as shown in Chapter 10. If you want to try that, create a service that responds to URLs like:

http://SERVER:PORT/todo_view?user="Jon+Udell&date="Thu+Jul+01+1999"

The dhttp kit includes a plug-in, todo.pm, that implements a bare-bones version of such a service, for an ODBC data source.

To use this module, define this SQL table:

CREATE TABLE ASSIGNMENTS (PROJECT CHAR(10), TASK INTEGER, DUE DATE,  
  DONE DATE, USER CHAR(20));

Then populate it with some task data, for example:

INSERT INTO ASSIGNMENTS (PROJECT, TASK, DUE, DONE, USER)  
  VALUES ('PROJ1', 2, #1999-09-11#, NULL, 'Jon Udell');

Then, edit GroupCalProps.txt and tell GroupCal to look for a todo server:

enableTodo=true

Finally, restart GroupCal.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required