February 23, 2009 at 12:59 AM
servlet interface is coming under javax package
use " import javax.servlet.*; "
February 23, 2009 at 3:00 AM
set the classpath first with the following method
You have to set this variable which points to the base installation directory of JDK installation. (e.g. c:\program file\java\jdk1.6.0). You can either set this from the command prompt or from My Computer -> Properties -> Advanced -> Environment Variables.
edit the classpath and set it in the following manner
C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar