if you're using tomcat, you should add <tomcat install directory>/common/lib/servlet-api.jar to your classpath when you're trying to compile servlets. Just to be safe, I usually include every jar file in that directory in my class path while compiling J2EE programs.
Note to java beginners: It is not enough to include a directory containing jar files in your classpath. You must name each jar file individually. That's why having C:\tomcat\common\lib in your classpath didn't help. [ March 03, 2005: Message edited by: Merrill Higginson ]
Success! Thank you Marilyn and Merrill - I worship you both.
Follow-up question: doesn't including all the individual jar files lead to seriously bloated env. variables? or is there a way to toss them all in there concisely (like including ../lib/*.jar)? I had the impression that Windows wouldn't deal with wildcards in variables, but I wouldn't mind being wrong...