Skip to Main Content
Practical Internet Groupware
book

Practical Internet Groupware

by Jon Udell
October 1999
Beginner content levelBeginner
521 pages
15h 28m
English
O'Reilly Media, Inc.
Content preview from Practical Internet Groupware

Appendix A. Example Software

Kit for Chapter 4

You can recreate the polling example using any URL-driven polling application. The Polls servlet discussed in Chapter 4 (and Chapter 10) is just one of many possible ways to do it. The point of the example in Chapter 4 is to show how and why it can be useful to reduce the user interface of a polling application to URLs that can be transmitted in email or newsgroup messages. That said, here are the pieces used in the example given in the book.

The Polls Servlet

To reproduce the example, you’ll need the Polls servlet (http://udell.roninhouse.com/examples/Polls.zip), plus a servlet host in which to run the Polls servlet. There are lots of servlet hosts available; see http://www.servlets.com/resources/urls/engines.html. Polls and GroupCal, the two servlet examples in my book, are primarily set up to work with Jef Poskanzer’s Acme.Serve (http://www.acme.com/resources/classes/Acme.tar.Z), an open-source servlet host.

The documentation for the GroupCal servlet (http://udell.roninhouse.com/examples/GroupCalDoc.htm ) has details on compiling Acme.Serve for Unix or NT. Once you’ve done that, the setup for Polls is as follows:

  1. In Serve.java:

    Servlet Polls = new Acme.Serve.Polls(); 
      serve.addServlet( "/Polls", Polls );
  2. Recompile Serve.java

  3. Run Serve.java:

    java Acme.Serve.Serve
  4. Test the Polls servlet:

    http://hostname:9090/Polls?name=Groupware&1=Rules&2=Sucks&3=DontCare 
      http://hostname:9090/Polls?vote=Rules 
      http://hostname:9090/Polls?tally=yes

The Poll-Creating ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Web Operations

Web Operations

John Allspaw, Jesse Robbins

Publisher Resources

ISBN: 1565925378Catalog PageErrata