Rob Spoor wrote:You don't need it. You only need servlet-api.jar and possibly jsp-api.jar. You can copy those from your servlet container's lib folder.
And how will i do that?? i mean which file i need to copy please help me with the location thanks!!! i'm very new to java.!
Didn't I just tell you exactly which to files to copy? And didn't I also just tell you where they are found? Granted, "your servlet container's lib folder" is not 100% clear, but that's because it's not necessarily the same for each servlet container. For Tomcat, there is a lib folder directly in the Tomcat installation folder that contains these two files. For others like JBoss there's probably something similar.
You don't need to copy anything. Just leave the files where they are (as installed by the container) and add them to your classpath. Under no circumstance should you copy them to the WEB-INF/lib folder.