javax.servlet.* and javax.servlet.http.* are packages in the JEE SDK. If you are using Tomcat look in its libs for servlet-api.jar. This will need to be in your classpath to compile your code.
Joined: Mar 02, 2006
Hi Paul thanks for you replies, i will not be able to run my application with our servlet.jar in my classpath, it is there, i am able to use other listeners like HttpSessionListener etc but i am not able to use ServletRequestListener, have you ever used it, if so can you paste the code...
Pasting code is not going to help, bnkiran kumar. You need to make sure your environment is set up correctly. ServletRequestListener became part of the API for servlet version 2.4. That means your version of Tomcat must be 5.5 or higher. Which version are you using?