File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes serveltrequestlistener problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "serveltrequestlistener problem" Watch "serveltrequestlistener problem" New topic
Author

serveltrequestlistener problem

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
I implemented ServletRequestListener and placed it in tomcat and weblogic. My intension is when ever there is a request to the container I want to execute some code. But this listener is working fine in tomcat and it is not working in weblogic.
even though the servletRequestListener is working finein tomcat, In destroy(ServletRequestEvent sre) of the listener I am trying to get the ServletRequest on which this ServletRequestEvent is generated by ServletRequestEvent.getRequest() .compilation is going fine and when I place this in tomcat it is throwing an internal server error saying that ServletRequestEvent.getRequest() not found.why is it saying like that.
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
Have you tried calling getServletRequest() instead?


James Carman, President<br />Carman Consulting, Inc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: serveltrequestlistener problem