I have created one sample jsp file using eclipse. Then eclipse is showing one error "The superclass javax.servlet.http.HttpServlet was not found ".
According to The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path , I have done the following . Project Properties-> Java Build Path-> Add Library -> Select "Server Runtime" from the list-> Next->Select "Apache Tomcat"-> Finish
and it worked fine. But I don't understand the use of this procedure. Please tell me why we are adding server runtime library to java build path.