This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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?