why iam getting javax.servlet error while running my servlet program...after setting the classpath also i am finding that problem
You need the servlet API libraries in your classpath. These are usually found in servlet.jar. Make sure servlet.jar is in your classpath and all set. Then restart your command prompt and compile your servlet. Restart the tomcat server and run your servlet.
For more information, visit the following link: