Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers Request free information on products written about or advertised in BYTE Submit a press release, or scan recent announcements Talk with BYTE's staff and readers about products and technologies

ArticlesSurprising Uses for Servlets


August 1997 / Web Project / Persistent Java / Surprising Uses for Servlets

Servlets, like all Web applications, have dual personalities. They're applications that people use interactively, but they're also components that programs can use. This duality, plus the protean power of URLs, makes ByteCal useful in ways that I didn't even anticipate:

1) Personalization

ByteCal's main screen lists all the users in the system. But users can skip that screen and jump straight to their own calendars. How? ByteCal's "API" includes this idiom for viewing data:

/bytecal?w
ho=Jon+Udell&view=yes&limit=8

which says: "Show Jon's calendar for the next eight weeks." The function "Show Tom's calendar for the next six weeks" is just a variant of this expression. If Tom puts that expression into a bookmark, he's created a personal calendar.

2) Importing data

"Great stuff," said BYTE editor John Montgomery when he first saw ByteCal. "But can I import my Ecco database into it?" My first response was: No way. My second was: Why not? ByteCal's "API" includes this idiom for editing data:

/bytecal?who=Jon+Udell&edit=yes&Mon+May+19=Dentist+appt

which says: "Record a dentist appointment for Jon on May 19." When you use ByteCal interactively, its Web forms construct this syntax for you. But you can also issue these URLs under program control, from any URL-aware langauge (Perl, Python, Java), using ByteCal as a component.

3) Printing

Anyone who's ever written a Windows or Mac data-viewing application knows that printing support gets d one last, and often poorly. It wasn't until I saw pages of ByteCal output floating around the office that it dawned on me: ByteCal can print! Navigator and MSI do a perfectly acceptable job of printing the HTML table that ByteCal's viewer produces.


Up to the Web Project section contentsGo to previous article: Persistent JavaSearchSend a comment on this articleSubscribe to BYTE or BYTE on CD-ROM  
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network