This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
You need to include the j2ee.jar file located in your lib directory of the installed j2ee distribution as part of your classpath when you compile your servlet. After that, assuming you correctly package your web application, you'll be just fine.
just add servlet.jar in ur classpath . Follow this: My Computer -> Properties ->Advanced ->Environment Variables then add a variable named CLASSPATH(if this is not already exist), give full path of the servlet.jar (C:\Tomcat..\common\lib\servlet.jar) sanjay.