Originally posted by Delano Pagee:
Done... but nothing happened... I checked the java build path for the project after adding the api-servlet jar... source attachment NONE... I think it the complete javax.servlet classes are missing from the JDK 6 u1... I checked the source code for JDK 6 u1 and their not there either... what do ya think?
That's right. They are not part of the JDK. They are part of the Java Enterprise Edition (JEE). As Satou pointed out, the easiest thing to do is grab the servlet-api.jar and place it in your classpath. In Eclipse, it's as Satou said.
What do you mean by "but nothing happened" and "...NONE..."?
If you're unfamiliar with setting your classpath, let me know and I'll move this thread to our Java In General (Beginner) forum where javac and classpath issues are best discussed.
If you're having trouble getting a particular IDE to pickup servlet-api.jar, then also let me know. We have a forum for IDEs where configuration issues are covered.