Your servlet.jar file is not in classpath. This jar file is usually shipped with whichever webserver you might be using. You must add the folder containing this jar file to your classpath. For eg. both JSWDK and Java Web Server have this file in their lib directory. Hope this helps [ February 17, 2003: Message edited by: Debashish Chakrabarty ]
In addition to adding servlet.jar to your classpath, also make sure that the top of your Java class you need to import special libraries that servlets need to work, i.e. import javax.servlet.*; import javax.servlet.http.*; A really good book (available online for free if you're skint, but well worth buying) on getting started with servlets is 'Core Servlets and JavaServer Pages' by Marty Hall, and the online version is available here. HTH, Gillian [ February 17, 2003: Message edited by: Gillian Klee ]
Joined: Feb 07, 2003
well guys it would be a great help if you could tell me exactly wht im suppose to put in my class path coz i put the servlet.jar in the classpath before posting my problem and it didnt work so i would like to know the exact value tht i am suppose to put in class path.